OFFSET
1,6
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
EXAMPLE
n(7) = 1 because only 7 mod 5 = 2 is even.
MATHEMATICA
Table[Total[Boole[EvenQ/@Mod[n, Range[2, n-1]]]], {n, 80}] (* Harvey P. Dale, Aug 09 2021 *)
PROG
(PARI) a(n) = sum(k=2, n-1, ((n % k) % 2)== 0); \\ Michel Marcus, Feb 24 2020
CROSSREFS
KEYWORD
nonn
AUTHOR
Thomas Kerscher, Feb 24 2020
STATUS
approved