cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A234959 Highest power of 6 dividing n.

Original entry on oeis.org

1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 36, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 36, 1, 1, 1, 1, 1, 6, 1, 1, 1, 1, 1, 6
Offset: 1

Views

Author

Tom Edgar, Jan 01 2014

Keywords

Comments

The generalized binomial coefficients produced by this sequence provide an analog to Kummer's Theorem using arithmetic in base 6.

Examples

			Since 12 = 6 * 2, a(12) = 6. Likewise, since 6 does not divide 13, a(13) = 1.
		

Crossrefs

Programs

  • Haskell
    a234959 = f 1 where
       f y x = if m == 0 then f (y * 6) x' else y  where (x', m) = divMod x 6
    -- Reinhard Zumkeller, Feb 09 2015
    
  • Mathematica
    6^Table[IntegerExponent[n, 6], {n, 84}] (* Alonso del Arte, Jan 01 2014 *)
  • PARI
    a(n)=6^valuation(n,6) \\ Charles R Greathouse IV, Aug 05 2015
  • Sage
    n=200 #change n for more terms
    [6^(valuation(i,6)) for i in [1..n]]
    

Formula

a(n) = 6^(valuation(n,6)).
a(n) = 6^A122841(n). - Joerg Arndt, Jan 02 2014
G.f.: x/(1 - x) + 5 * Sum_{k>=1} 6^(k-1)*x^(6^k)/(1 - x^(6^k)). - Ilya Gutkovskiy, Jul 10 2019