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.

A007884 Chimes made by clock striking quarter-hours.

Original entry on oeis.org

1, 2, 3, 1, 1, 2, 3, 2, 1, 2, 3, 3, 1, 2, 3, 4, 1, 2, 3, 5, 1, 2, 3, 6, 1, 2, 3, 7, 1, 2, 3, 8, 1, 2, 3, 9, 1, 2, 3, 10, 1, 2, 3, 11, 1, 2, 3, 12, 1, 2, 3, 1, 1, 2, 3, 2, 1, 2, 3, 3, 1, 2, 3, 4, 1, 2, 3, 5, 1, 2, 3, 6, 1, 2, 3, 7, 1, 2, 3, 8, 1, 2, 3, 9, 1, 2, 3, 10, 1, 2, 3, 11, 1, 2, 3, 12
Offset: 0

Views

Author

Keywords

Comments

Periodic sequence with period 48. - Michel Marcus, Jul 17 2013

Crossrefs

Programs

  • Mathematica
    Table[Flatten[Table[PadRight[{1,2,3},4,h],{h,12}]],{2}]//Flatten (* Harvey P. Dale, Jun 16 2023 *)
  • PARI
    a(n)= if((n+1)%4, (n+1)%4, ((n+1)/4-1)%12+1) \\ Michel Marcus, Jul 17 2013