OFFSET
1,2
COMMENTS
The initial term could also be taken to be 0.
From the formula a(p(n)) = n, it follows that every positive integer appears in this sequence. - Franklin T. Adams-Watters, Feb 09 2016
LINKS
M. F. Hasler, Table of n, a(n) for n = 1..20000.
M. F. Hasler, A046641.c - C program for fast computation of a(n) for large values of n. [From M. F. Hasler, Oct 18 2008]
FORMULA
a(p(n)) = n. - Franklin T. Adams-Watters, Feb 09 2016
EXAMPLE
The first partition number divisible by 9 is p(14) = 135, so a(9) = 14.
MATHEMATICA
Table[SelectFirst[Range[10^3], Divisible[PartitionsP@ #, n] &], {n, 70}] (* Michael De Vlieger, Feb 10 2016, Version 10 *)
PROG
(PARI) a(n) = my(m = 1); while(numbpart(m) % n, m++); m; \\ Michel Marcus, Feb 10 2016
CROSSREFS
KEYWORD
nonn
AUTHOR
EXTENSIONS
Definition corrected by Max Alekseyev, Apr 25 2010
STATUS
approved