OFFSET
0,2
COMMENTS
a(n) > a(n-1) iff n is a 3-smooth number.
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..10000
FORMULA
sign(a(n+1)-a(n)) = A065333(n+1).
MATHEMATICA
a[0] = 1; a[n_] := a[n] = 2*a[Floor[n/2]] + 3*a[Floor[n/3]]; Array[a, 50, 0] (* Amiram Eldar, Jul 13 2023 *)
PROG
(PARI) a(n)=if(n<1, 1, a(floor(n/2))*2+3*a(floor(n/3)))
CROSSREFS
KEYWORD
nonn
AUTHOR
Benoit Cloitre, Oct 23 2004
STATUS
approved