OFFSET
1,1
COMMENTS
For n>0, a(2^n) = 1.
For any base b, a(1) = b, a(2) = b-1, a(3) = b*(b-1), for m>1, a(2m) = a(m), a(2m+1) = b*a(m).
For any base b, a(n) = (b-1)*b^(A000120(n)-1).
Essentially the same as A048896. - R. J. Mathar, Jun 27 2014
FORMULA
a(1) = 2, a(2) = 1, a(3) = 2, For m>1, a(2m) = a(m), a(2m+1) = 2*a(m).
a(n) = 2^(A000120(n)-1).
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Lior Manor, May 29 2014
STATUS
approved