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.

A232014 Number of iterations of A032445 ("position of n in Pi") until a value is reached for the second time, when starting with n, or -1 if no value is repeated.

Original entry on oeis.org

16, 4, 3, 5, 6, 1
Offset: 0

Views

Author

M. F. Hasler, Nov 16 2013

Keywords

Comments

See A232013 for a variant based on A176341 instead of A032445.
Some loops: (5), (271070), (9292071), (40, 71), (2, 7, 14), (296, 1060, 13737, 133453, 646539, 294342, 141273). - Hans Havermann, Jul 26 2014
See Hans Havermann table (in links) for primary unknown-length evolutions. - Hans Havermann, Aug 06 2014

Examples

			a(1)=4 since A032445(1)=2 (the first "1" occurs after the initial "3" as second digit in Pi), A032445(2)=7 (the first "2" occurs as 7th digit of Pi's decimal expansion), A032445(7)=14, A032445(14)=2, which "closes the loop" after 4 iterations. (The initial value does not need to be part of the loop.)
		

Crossrefs

Cf. A032445.

Programs

  • PARI
    A232014(n)={my(u=0);for(i=1,9e9,u+=1<A032445(n))&&return(i))}

Extensions

Definition modified by N. J. A. Sloane, Jul 29 2014