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.

A193431 Put the natural numbers together without spaces and read them three at a time advancing one space each time.

Original entry on oeis.org

123, 234, 345, 456, 567, 678, 789, 891, 910, 101, 11, 111, 112, 121, 213, 131, 314, 141, 415, 151, 516, 161, 617, 171, 718, 181, 819, 192, 920, 202, 21, 212, 122, 222, 223, 232, 324, 242, 425, 252, 526, 262, 627, 272, 728, 282, 829, 293, 930, 303, 31, 313
Offset: 1

Views

Author

Reinhard Zumkeller, Jul 28 2011

Keywords

Crossrefs

Programs

  • Haskell
    a193431 n = a193431_list !! (n-1)
    a193431_list = f a007376_list where
       f (x:xs'@(x':x'':xs)) = 10*(10*x + x') + x'' : f xs'
  • Mathematica
    Module[{nn=50,d},d=Flatten[IntegerDigits/@Range[nn]];FromDigits/@ Partition[ d,3,1]] (* Harvey P. Dale, Nov 16 2021 *)

Formula

a(n) = 10 * (10 * A007376(n) + A007376(n+1)) + A007376(n+2).