OFFSET
1,2
LINKS
Rémy Sigrist, Table of n, a(n) for n = 1..8192
FORMULA
a(2^k) = 1 + 5*k for any k >= 0.
a(2^k-1) = 2^(k-1) for any k > 0.
EXAMPLE
a(12) = a(6) + 5 = a(3) + 5 + 5 = a(1) * 3 + 5 + 5 = 1 * 3 + 5 + 5 = 13.
PROG
(PARI) a(n) = { if (n==1, 1, n%2==0, a(n\2)+5, a(n\2)*3) }
CROSSREFS
KEYWORD
nonn
AUTHOR
Rémy Sigrist, Jun 05 2020
STATUS
approved