OFFSET
0,5
COMMENTS
Conjecture: there are only five n: 0,1,2,7,8, for which all entries of the n-th Pascal row (A007318) are odious (A000069). Peter J. C. Moses verified the conjecture up to n = 10^6.
Positions of records are 0,3,4,11,14,76,...; see A249650.
Conjecture verified up to n = 5*10^10. - Michael S. Branicky, Jul 13 2024
LINKS
Peter J. C. Moses, Table of n, a(n) for n = 0..1000
FORMULA
a(n) = 1, iff n is evil.
MATHEMATICA
evilQ:=EvenQ[First[DigitCount[#, 2]]]&;
Table[If[#>n, 0, #]&[NestWhile[#+1&, 1, !evilQ[Binomial[n, #]]&]], {n, 0, 100}] (* Peter J. C. Moses, Nov 03 2014 *)
PROG
(Python)
from math import comb
from itertools import count
def A249609(n):
for m in range(1, n+1):
if comb(n, m).bit_count()&1 == 0: return m
return 0
print([A249609(n) for n in range(87)]) # Michael S. Branicky, Jul 13 2024
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Vladimir Shevelev, Nov 02 2014
EXTENSIONS
More terms from Peter J. C. Moses, Nov 02 2014
STATUS
approved