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.

A061462 The exact power of 2 that divides the n-th Bell number (A000110). Has period 12.

Original entry on oeis.org

1, 1, 2, 1, 1, 4, 1, 1, 4, 1, 1, 2, 1, 1, 2, 1, 1, 4, 1, 1, 4, 1, 1, 2, 1, 1, 2, 1, 1, 4, 1, 1, 4, 1, 1, 2, 1, 1, 2, 1, 1, 4, 1, 1, 4, 1, 1, 2, 1, 1, 2, 1, 1, 4, 1, 1, 4, 1, 1, 2, 1, 1, 2, 1, 1, 4, 1, 1, 4, 1, 1, 2, 1, 1, 2, 1, 1, 4, 1, 1, 4, 1, 1, 2, 1, 1, 2, 1, 1, 4, 1, 1, 4, 1, 1, 2, 1, 1, 2, 1, 1, 4, 1, 1, 4, 1, 1, 2
Offset: 0

Views

Author

Ahmed Fares (ahmedfares(AT)my-deja.com), Jun 10 2001

Keywords

Comments

{ Bell(n) mod 8 } is periodic with period 24, the period being (1 1 2 5 7 4 3 5 4 3 7 2 5 5 2 1 3 4 7 1 4 7 3 2). Hence the highest power of 2 dividing a Bell number is 4. - David W. Wilson, Jun 29 2001

Crossrefs

Cf. A000110.

Programs

  • Mathematica
    PadRight[{},120,{1,1,2,1,1,4,1,1,4,1,1,2}] (* Harvey P. Dale, Sep 24 2017 *)
  • PARI
    a(n)=[1, 1, 2, 1, 1, 4, 1, 1, 4, 1, 1, 2][n%12+1] \\ Charles R Greathouse IV, Jul 13 2016