calculate(n){
let m =n
if(m ===0){
return
}
if(m <=2){
return 1
}
if(m===1){
return 0
}
let number =Math.floor(m/3)
let that = this
return that.calculate(number + m%3) + number
},
console.log(this.calculate(8))