OFFSET
1,3
LINKS
V. Gardiner, R. Lazarus, N. Metropolis, and S. Ulam, On certain sequences of integers defined by sieves, Mathematics Magazine, 29(3) (1955), 117-122.
OEIS, Lucky numbers.
Hugo van der Sanden, C code to calculate lucky numbers for A000959.
Eric Weisstein's World of Mathematics, Lucky number.
Wikipedia, Lucky number.
EXAMPLE
a(7) = 4 because we have the following partitions of n = 7 into lucky numbers: 7 = 3 + 3 + 1 = 3 + 1 + 1 + 1 + 1 = 1 + 1 + 1 + 1 + 1 + 1 + 1. - Petros Hadjicostas, Jun 05 2020
MATHEMATICA
lst = Range[1, 100, 2]; i = 2; While[ i <= (len = Length@lst) && (k = lst[[i]]) <= len, lst = Drop[lst, {k, len, k}]; i++ ]; Rest@ CoefficientList[Series[1/Times @@ (1 - x^lst), {x, 0, 61}], x] (* Robert G. Wilson v, May 12 2006 *)
CROSSREFS
KEYWORD
easy,nonn
AUTHOR
Naohiro Nomoto, Jan 26 2002
EXTENSIONS
More terms from Robert G. Wilson v, May 12 2006
STATUS
approved