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.

A228412 Number of iterations of A176341 ("position of m in Pi") starting with n until a loop is reached.

Original entry on oeis.org

0, 0, 8, 0, 9, 10, 7, 6
Offset: 0

Views

Author

M. F. Hasler, Nov 16 2013

Keywords

Comments

"A loop is reached" means that an element x is reached such that (A176341^k)(x) = x for some k>0.

Examples

			a(0)=a(1)=a(3)=0 since 0 and 3 are elements of the loop 0 -> 32 -> 15 -> 3 -> 0, and 1 is a fixed point (i.e., loop of length 1) of A176341.
a(2)=8 is the number of steps in 2 -> 6 -> 7 -> 13 -> 110 -> 174 -> 155 -> 314 -> 0, at which point the previously mentioned loop is reached.
		

Crossrefs

Programs

  • PARI
    A228412(n)={my(u=0);for(i=1,9e9,u+=1<A176341(n))&&return(i-A232013(n)))}