OFFSET
0,3
COMMENTS
Of the partitions of numbers from 1 to 100000: 27193 are 0, 12078 are 1, 12203 are 2, 12260 are 3, 12231 are 4, 12003 are 5 and 12032 are 6 modulo 7, largely because the number of partitions of 7m+5 is always a multiple of 7.
LINKS
FORMULA
a(n) = Pm(n,1) with Pm(n,k) = if k<n then (Pm(n-k,k) + Pm(n,k+1)) mod 7 else 0^(n*(k-n)). [Reinhard Zumkeller, Jun 09 2009]
MATHEMATICA
Table[Mod[PartitionsP[n], 7], {n, 0, 110}] (* Harvey P. Dale, Feb 17 2018 *)
PROG
(PARI) a(n) = numbpart(n) % 7; \\ Michel Marcus, Jul 14 2022
CROSSREFS
KEYWORD
nonn
AUTHOR
Henry Bottomley, Mar 05 2002
STATUS
approved