login
A090046
Length of longest contiguous block of 0's in binary expansion of n-th prime.
4
1, 0, 1, 0, 1, 1, 3, 2, 1, 1, 0, 2, 2, 1, 1, 1, 1, 1, 4, 3, 2, 2, 2, 2, 4, 2, 2, 1, 1, 3, 0, 5, 3, 3, 2, 2, 2, 3, 2, 1, 2, 1, 1, 5, 3, 3, 2, 1, 3, 2, 2, 1, 3, 1, 7, 5, 4, 4, 3, 3, 3, 2, 2, 2, 2, 2, 2, 3, 1, 1, 4, 2, 1, 1, 1, 1, 4, 3, 3, 2, 3, 2, 1, 3, 1, 1, 5, 2, 2, 2, 2, 1, 2, 1, 2, 1, 1, 5, 5, 4, 3, 3, 3, 3, 3
OFFSET
1,7
COMMENTS
a(n) = A087117(A000040(n)).
MATHEMATICA
f[n_] := Length[ Union[ DeleteCases[ Split[ IntegerDigits[n, 2]], 1, 2]][[ -1]]]; Table[ f[ Prime[n]], {n, 1, 105}] (* Robert G. Wilson v, Dec 03 2003 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Reinhard Zumkeller, Nov 20 2003
STATUS
approved