OFFSET
1,3
LINKS
Peter Kagey, Table of n, a(n) for n = 1..5000
EXAMPLE
The first six terms of this array are:
.
0 2 0
0 4
0
.
a(8) = 1 because the parity of 8 is different from the parity of a(7) = 1.
a(3) = 2 because the parity of 3 is different from the parity of a(2) = 0 and a(1) = 0.
PROG
(Haskell)
a279968 n = genericIndex a279968_list (n - 1)
a279968_list = map count [1..] where
count n = genericLength $ filter (odd . (n+)) adjacentLabels where
adjacentLabels = map a279968 (a274080_row n)
CROSSREFS
KEYWORD
nonn,tabl
AUTHOR
Alec Jones, Dec 24 2016
STATUS
approved