OFFSET
1,2
LINKS
Donovan Johnson, Table of n, a(n) for n = 1..300
EXAMPLE
For n=3: 15 is in the sequence because 15 has three ways: e.g. (d=3; 3|15) and 4+5+6=15, (d=5; 5|15) and 1+2+3+4+5=15, (d=1; 1|15) and 15=15. 15 is the smallest number. so a(3)=15.
PROG
(PARI) divCount(n) = local(count, d, m, dd); count = 1; d = divisors(n); m = matsize(d)[2]; for (i = 2, m, dd = d[i]; if (dd*(dd + 1)/2 > n, return(count)); if (dd%2, if (n%dd == 0, count = count + 1), if (n%dd == dd/2, count = count + 1))); return(count); A = vector(45); count = 0; i = 0; while (count < 45, i = i + 1; n = divCount(i); if (A[n] == 0, A[n] = i; count = count + 1; )); A
CROSSREFS
KEYWORD
nonn
AUTHOR
Naohiro Nomoto, May 14 2003
EXTENSIONS
More terms from David Wasserman, Sep 23 2004
STATUS
approved