This site is supported by donations to The OEIS Foundation.

 Hints (Greetings from The On-Line Encyclopedia of Integer Sequences!)
 A275019 2-adic valuation of tetrahedral numbers C(n+2,3) = n(n+1)(n+2)/6 = A000292. 2
 0, 2, 1, 2, 0, 3, 2, 3, 0, 2, 1, 2, 0, 4, 3, 4, 0, 2, 1, 2, 0, 3, 2, 3, 0, 2, 1, 2, 0, 5, 4, 5, 0, 2, 1, 2, 0, 3, 2, 3, 0, 2, 1, 2, 0, 4, 3, 4, 0, 2, 1, 2, 0, 3, 2, 3, 0, 2, 1, 2, 0, 6, 5, 6, 0, 2, 1, 2, 0, 3, 2, 3, 0, 2, 1, 2, 0, 4, 3, 4, 0, 2, 1, 2, 0, 3, 2, 3, 0, 2, 1, 2, 0, 5, 4, 5, 0, 2, 1, 2, 0, 3, 2, 3, 0, 2, 1, 2, 0, 4 (list; graph; refs; listen; history; text; internal format)
 OFFSET 1,2 COMMENTS The subsequence of every other term (a(2n-1), n >= 1) is the ruler sequence A007814 = (0, 1, 0, 2, 0, 1, 0, 3, 0, 1, 0, 2, ...), in particular every fourth term is zero. The nonzero terms among them, a(4n-1) = A007814(2n) (n >= 1) have both their neighbors equal to one more than themselves, a(4n-2) = a(4n) = a(4n-1) + 1 = A007814(2n) + 1. LINKS Robert Israel, Table of n, a(n) for n = 1..10000 FORMULA From Robert Israel, Dec 04 2016: (Start) a(n) = A007814(n) + A007814(n+1) + A007814(n+2) - 1. G.f.: (1+x+x^2)*Sum_{k>=1} x^(2^k-2)/(1-x^(2^k)) - 1/(1-x). (End) MAPLE seq(padic:-ordp(n*(n+1)*(n+2)/6, 2), n=1..100); # Robert Israel, Dec 04 2016 PROG (PARI) a(n)=valuation(n*(n+1)*(n+2)/6, 2) (MAGMA) [Valuation(n*(n+1)*(n+2)/6, 2): n in [1..100]]; // Vincenzo Librandi, Dec 04 2016 CROSSREFS Cf. A000292, A007814. Sequence in context: A238735 A258120 A147786 * A119387 A055941 A290537 Adjacent sequences:  A275016 A275017 A275018 * A275020 A275021 A275022 KEYWORD nonn AUTHOR M. F. Hasler, Dec 03 2016 STATUS approved

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

Last modified August 18 00:28 EDT 2018. Contains 313817 sequences. (Running on oeis4.)