login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A076982 Number of triangular numbers that divide the n-th triangular number. 8

%I #30 Mar 21 2023 11:27:06

%S 1,2,3,2,3,3,2,4,4,2,4,4,2,5,6,2,3,3,3,8,4,2,4,6,2,3,5,2,4,4,2,5,3,2,

%T 10,4,2,3,7,3,4,4,2,9,5,2,4,6,2,4,5,2,3,6,5,6,3,2,6,6,2,4,7,3,5,3,2,4,

%U 6,2,5,5,2,4,7,2,6,3,3,9,3,2,5,10,2,3,5,2,5,8,3,4,3,2,8,4,2,5,10,3,3,3

%N Number of triangular numbers that divide the n-th triangular number.

%C Also number of oblong numbers that divide the n-th oblong number.

%C Sequence A137281 contains the indices of primitive triangular numbers; those that have no triangular divisors other than 1 and itself. - _T. D. Noe_, Apr 12 2011

%H T. D. Noe, <a href="/A076982/b076982.txt">Table of n, a(n) for n = 1..10000</a>

%F a(n) = A007862(A000217(n)) = A129308(A002378(n)). - _Ray Chandler_, Jun 21 2008

%p a[1] := 1:for i from 1 to 200 do s := 0:for j from 1 to i do if((i*(i+1)/2 mod j*(j+1)/2)=0) then s := s+1:fi:od:a[i] := s:od:seq(a[l],l=1..200);

%t nn = 100; tri = Table[n*(n+1)/2, {n, nn}]; Table[Count[Mod[tri[[n]], Take[tri, n]], 0], {n, nn}] (* _T. D. Noe_, Apr 12 2011 *)

%o (Python)

%o def aupton(nn):

%o tri = [i*(i+1)//2 for i in range(1, nn+1)]

%o return [sum(t%t2 == 0 for t2 in tri[:j+1]) for j, t in enumerate(tri)]

%o print(aupton(102)) # _Michael S. Branicky_, Dec 10 2021

%o (PARI) a(n) = sumdiv(n*(n+1)/2, d, ispolygonal(d, 3)); \\ _Michel Marcus_, Mar 21 2023

%Y Cf. A007862, A000217, A129308, A002378.

%Y Cf. A000005, A076983, A084260.

%Y Cf. A137281.

%K nonn

%O 1,2

%A _Amarnath Murthy_, Oct 25 2002

%E More terms from _Lior Manor_ Nov 06 2002

%E More terms from _Sascha Kurz_, Jan 26 2003

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 06:44 EDT 2024. Contains 371782 sequences. (Running on oeis4.)