login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A342603 a(0) = 0, a(1) = 1; a(2*n) = a(n), a(2*n+1) = 6*a(n) + a(n+1). 9
0, 1, 1, 7, 1, 13, 7, 43, 1, 19, 13, 85, 7, 85, 43, 259, 1, 25, 19, 127, 13, 163, 85, 517, 7, 127, 85, 553, 43, 517, 259, 1555, 1, 31, 25, 169, 19, 241, 127, 775, 13, 241, 163, 1063, 85, 1027, 517, 3109, 7, 169, 127, 847, 85, 1063, 553, 3361, 43, 775, 517, 3361, 259, 3109, 1555, 9331, 1 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
G.f.: x * Product_{k>=0} (1 + x^(2^k) + 6*x^(2^(k+1))).
a(2^n-1) = (6^n - 1)/5 = A003464(n); a(2^n) = 1; a(2^n+1) = 6*n + 1 = A016921(n). - Alois P. Heinz, Mar 17 2021
MAPLE
a:= proc(n) option remember; `if`(n<2, n, (q->
`if`(d=1, 6*a(q)+a(q+1), a(q)))(iquo(n, 2, 'd')))
end:
seq(a(n), n=0..70); # Alois P. Heinz, Mar 17 2021
MATHEMATICA
a[0] = 0; a[1] = 1; a[n_] := If[EvenQ[n], a[n/2], 6 a[(n - 1)/2] + a[(n + 1)/2]]; Table[a[n], {n, 0, 64}]
nmax = 64; CoefficientList[Series[x Product[(1 + x^(2^k) + 6 x^(2^(k + 1))), {k, 0, Floor[Log[2, nmax]] + 1}], {x, 0, nmax}], x]
CROSSREFS
Sequence in context: A349173 A347965 A013600 * A060393 A060394 A203810
KEYWORD
nonn
AUTHOR
Ilya Gutkovskiy, Mar 17 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 14 11:32 EDT 2024. Contains 375159 sequences. (Running on oeis4.)