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.

Showing 1-1 of 1 results.

A118020 Number of steps to reach an integer starting with (n+1)/n and using the approximate cubing map x -> x*ceiling(x^2); or -1 if no integer is ever reached.

Original entry on oeis.org

0, -1, 3, -1, 12, 2, 3, -1, 7, 2, 18, 8, 7, 22, 3, -1, 6, 8, 17, -1, 25, 3, 68, 4, 8, 14, 3, 11, 171, 6, 19, 5, 11, 11, 16, 6, 23, 19, 6, -1, 55, 3, 23, 10, 4, 26, 58, 6, 12, 3, 13, 3, 62, 9, 9, 4, 19, 62, 105, 9, 7, 24, 7, -1, 3, 17, 16, 12, 66, 21, 66, -1, 63, 65, 6, 28, 20, 20, 54, -1, 13, 92, 19, 21, 7, 9, 34, 36, 67, 5, 20, 5, 29, 62, 39, 6, 105
Offset: 1

Views

Author

T. D. Noe, Apr 10 2006

Keywords

Comments

This sequence is similar to A073524, approximate squaring. However, for the cubing map it is easy to show that fractions of the form odd/2 never yield an integer. Hence if an iterate ever has this form, then we know it will never yield an integer. The computations, similar to A073524, must be done modulo n^max for some max > 2*a(n)+2.

Examples

			a(3)=3 because 4/3 -> 8/3 -> 64/3 -> 9728.
		

Crossrefs

Cf. A118021 (n for which a(n)=-1).

Programs

  • Mathematica
    Stuck[x_] := OddQ[Numerator[x]] && (Denominator[x]==2); Table[lim=50; While[k=0; x=1+1/n; m=n^lim; While[2k=lim-3, lim=2*lim]; If[Stuck[x],-1,k], {n,200}]
Showing 1-1 of 1 results.