OFFSET
0,3
COMMENTS
Multiplicative because only powers of two have a nonzero value. - Andrew Howroyd, Jul 27 2018
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..65537
FORMULA
a(n) = 1 + a(log_2(n)) if n is a power of 2, 0 otherwise.
PROG
(PARI) a(n) = if(n < 1, 0, my(e=valuation(n, 2)); if(n == 2^e, 1 + a(e), 0)) \\ Andrew Howroyd, Jul 27 2018
CROSSREFS
KEYWORD
nonn,easy,mult
AUTHOR
Paul Boddington, Feb 20 2015
EXTENSIONS
Extended up to a(128) by Antti Karttunen, Sep 30 2018
STATUS
approved