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.

A063380 a(1) = 4, a(n) = concatenation of two closest factors of a(n-1) whose product equals a(n-1) or if a(n-1) is a prime then the concatenation of 1 and a(n-1).

Original entry on oeis.org

4, 22, 211, 1211, 7173, 9797, 97101, 910789, 1182799, 1319029, 6719687, 7678761, 32559587, 257126691, 1591617149, 6653239233, 62767105999, 126149775659, 432933715713, 2435717774509, 6598336914323, 19495633384521
Offset: 1

Views

Author

Robert G. Wilson v, Aug 08 2001

Keywords

Crossrefs

Programs

  • Mathematica
    f[ n_Integer ] := (d = Divisors[ n ]; l = Length[ d ]; If[ EvenQ[ l ], ToExpression[ ToString[ d[ [ l/2 ] ] ] <> ToString[ d[ [ l/2 + 1 ] ] ] ], ToExpression[ ToString[ d[ [ l/2 + .5 ] ] ] <> ToString[ d[ [ l/2 + .5 ] ] ] ] ] ); NestList[ f, 4, 24 ]