[go: up one dir, main page]

login
A064301
Rightmost column of A064744; 2-adic valuation of the EKG-sequence.
5
0, 1, 2, 1, 0, 0, 2, 3, 1, 0, 0, 1, 1, 0, 0, 3, 4, 2, 1, 0, 0, 0, 1, 0, 0, 2, 1, 0, 0, 2, 5, 1, 0, 0, 1, 1, 0, 0, 0, 3, 2, 1, 0, 0, 4, 1, 2, 1, 3, 0, 0, 2, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 3, 6, 2, 1, 0, 0, 0, 1, 2, 4, 1, 0, 0, 0, 2, 0, 3, 1, 0, 0, 1, 0, 0, 2, 2, 1, 0, 0, 5, 1, 0, 3, 1, 0, 0, 2, 1, 0, 0, 1, 1, 4, 2
OFFSET
1,3
COMMENTS
Exponent of highest power of 2 dividing A064413(n).
LINKS
J. C. Lagarias, E. M. Rains and N. J. A. Sloane, The EKG sequence, arXiv:math/0204011 [math.NT], 2002.
J. C. Lagarias, E. M. Rains and N. J. A. Sloane, The EKG sequence, Exper. Math. 11 (2002), 437-446.
MATHEMATICA
IntegerExponent[#, 2] & /@ Nest[Append[#, Block[{k = 3}, While[Or[MemberQ[#, k], GCD[#[[-1]], k] == 1], k++]; k]] &, {1, 2}, 105] (* Michael De Vlieger, May 22 2018 *)
PROG
(PARI) A064301(n) = valuation(A064413(n), 2); \\ Needs also code from A064413. - Antti Karttunen, May 18 2018
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Oct 20 2001
EXTENSIONS
More terms from Vladeta Jovovic, Oct 21 2001
An alternative description added to name by Antti Karttunen, May 18 2018
STATUS
approved