A063440 Number of divisors of n-th triangular number.
1, 2, 4, 4, 4, 4, 6, 9, 6, 4, 8, 8, 4, 8, 16, 8, 6, 6, 8, 16, 8, 4, 12, 18, 6, 8, 16, 8, 8, 8, 10, 20, 8, 8, 24, 12, 4, 8, 24, 12, 8, 8, 8, 24, 12, 4, 16, 24, 9, 12, 16, 8, 8, 16, 24, 24, 8, 4, 16, 16, 4, 12, 36, 24, 16, 8, 8, 16, 16, 8, 18, 18, 4, 12, 24, 16, 16, 8, 16, 40, 10, 4, 16
Offset: 1
Examples
a(6) = 4 since 1+2+3+4+5+6 = 21 has four divisors {1,3,7,21}.
References
- Steve Dinh, The Hard Mathematical Olympiad Problems And Their Solutions, AuthorHouse, 2011, Problem 2 of the British Mathematical Olympiad 2007, page 28.
Links
- Ray Chandler, Table of n, a(n) for n = 1..10000
- British Mathematical Olympiad 2007/2008, Round 1, Problem 2.
- Index to sequences related to Olympiads.
Crossrefs
Programs
-
Maple
seq(numtheory:-tau(n*(n+1)/2), n=1..100); # Robert Israel, Oct 26 2015
-
Mathematica
DivisorSigma[0,#]&/@Accumulate[Range[90]] (* Harvey P. Dale, Apr 15 2019 *)
-
PARI
for (n=1, 10000, write("b063440.txt", n, " ", numdiv(n*(n + 1)/2)) ) \\ Harry J. Smith, Aug 21 2009
-
PARI
a(n)=factorback(apply(numdiv,if(n%2,[n,(n+1)/2],[n/2,n+1]))) \\ Charles R Greathouse IV, Dec 27 2014
-
PARI
vector(100, n, numdiv(n*(n+1)/2)) \\ Altug Alkan, Oct 26 2015
Comments