OFFSET
0,6
COMMENTS
!n is a subfactorial number (A000166).
Property of this sequence : for n different of 3, the number of even divisors of !n seems even.
From Robert Israel, Jul 31 2024: (Start)
LINKS
Amiram Eldar, Table of n, a(n) for n = 0..82
FORMULA
EXAMPLE
a(7) = 6 because the divisors of !7 = 1854 are {1, 2, 3, 6, 9, 18, 103, 206, 309, 618, 927, 1854} with 6 even divisors 2, 6, 18, 206, 618, 1854.
MAPLE
A166 := proc(n) option remember; (n-1)*(procname(n-1)+procname(n-2)); end:
A166(0):= 1: A166(1):= 0:
f:= proc(n) if n::even then 0 else numtheory:-tau(A166(n)/2) fi end proc:
map(f, [$0...60]); # Robert Israel, Jul 31 2024
MATHEMATICA
f[n_] := Block[{d = Divisors[Subfactorial[n]]}, Count[EvenQ[d], True]]; Table[f[n], {n, 0, 60}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Michel Lagneau, Sep 13 2011
STATUS
approved