The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A069834 a(n) = n-th reduced triangular number: n*(n+1)/{2^k} where 2^k is the largest power of 2 that divides product n*(n+1). 10
1, 3, 3, 5, 15, 21, 7, 9, 45, 55, 33, 39, 91, 105, 15, 17, 153, 171, 95, 105, 231, 253, 69, 75, 325, 351, 189, 203, 435, 465, 31, 33, 561, 595, 315, 333, 703, 741, 195, 205, 861, 903, 473, 495, 1035, 1081, 141, 147, 1225, 1275, 663, 689, 1431, 1485, 385, 399 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
The largest odd divisor of n-th triangular number.
LINKS
FORMULA
GCD(a(n),a(n+1)) = A000265(n+1). - Ralf Stephan, Apr 05 2003
a(n) = A000265(n) * A000265(n+1). - Franklin T. Adams-Watters, Nov 20 2009
From Amiram Eldar, Sep 15 2022: (Start)
a(n) = A000265(A000217(n)).
Sum_{n>=1} 1/a(n) = Sum_{i,j>=1} 2^(i+1)/(4^i*(2*j-1)^2 - 1) = 2.84288562849221553965... . (End)
MATHEMATICA
Table[tri = n*(n + 1)/2; tri/2^IntegerExponent[tri, 2], {n, 100}] (* T. D. Noe, Oct 28 2013 *)
PROG
(PARI) for(n=1, 100, t=n*n+n; while(t%2==0, t=t/2); print1(t", "))
(PARI) a(n)=local(t); t=n*(n+1)\2; t/2^valuation(t, 2) \\ Franklin T. Adams-Watters, Nov 20 2009
(Python)
def A069834(n):
a, b = divmod(n*n+n, 2)
while b == 0:
a, b = divmod(a, 2)
return 2*a+b # Chai Wah Wu, Dec 05 2021
CROSSREFS
Sequence in context: A218663 A095355 A336130 * A064038 A051684 A209388
KEYWORD
nonn
AUTHOR
Amarnath Murthy, Apr 14 2002
EXTENSIONS
More terms from Ralf Stephan, Apr 05 2003
STATUS
approved

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 May 16 20:35 EDT 2024. Contains 372555 sequences. (Running on oeis4.)