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.

A153030 Positions of even digits of Pi.

Original entry on oeis.org

3, 7, 8, 12, 17, 19, 20, 21, 22, 23, 24, 27, 29, 33, 34, 35, 36, 37, 42, 51, 53, 54, 55, 58, 60, 61, 64, 66, 68, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 82, 83, 84, 85, 86, 88, 89, 90, 93, 94, 98, 99, 102, 103, 105, 106, 107, 108, 109, 113, 114, 115, 117, 118, 119, 120
Offset: 1

Views

Author

Keywords

Crossrefs

Cf. A000796.

Programs

  • Mathematica
    Flatten[Position[ Map[If[EvenQ[ # ], "*", # ] &, RealDigits[ N[Pi, 100]][[1]]], "*"]]
    Select[Range@140, EvenQ[RealDigits[Pi, 10, 140][[1, # ]]] &] (* Robert G. Wilson v, Dec 21 2008 *)

Extensions

More concise Mathematica coding added and sequence extended by Robert G. Wilson v, Dec 21 2008