login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A352260 Integers that need 2 iterations of the map x->A352172(x) to reach 1. 8
25, 52, 125, 152, 205, 215, 250, 251, 455, 502, 512, 520, 521, 545, 554, 1025, 1052, 1125, 1152, 1205, 1215, 1250, 1251, 1455, 1502, 1512, 1520, 1521, 1545, 1554, 2005, 2015, 2050, 2051, 2105, 2115, 2150, 2151, 2255, 2500, 2501, 2510, 2511, 2525, 2552, 4055, 4155, 4505 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
25 -> 1000 -> 1.
MATHEMATICA
f[n_] := (Times @@ Select[IntegerDigits[n], # > 1 &])^3; q[n_, len_] := (v = Nest[f, n, len - 1]) != 1 && f[v] == 1; Select[Range[4505], q[#, 2] &] (* Amiram Eldar, Mar 10 2022 *)
PROG
(PARI) f(n) = vecprod(apply(x->x^3, select(x->(x>1), digits(n)))); \\ A352172
isok2(n) = {for (k=1, 2, n = f(n); if ((n==1), return(k==2)); ); }
(Python)
from math import prod
def A352172(n): return prod(int(d)**3 for d in str(n) if d != '0')
def ok(x):
x = A352172(x)
return x != 1 and A352172(x) == 1
print([k for k in range(4506) if ok(k)]) # Michael S. Branicky, Mar 10 2022
CROSSREFS
Cf. A352172. Subsequence of A351876.
Sequence in context: A042248 A132766 A039412 * A199990 A201057 A043235
KEYWORD
nonn,base
AUTHOR
Michel Marcus, Mar 10 2022
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 27 23:22 EDT 2024. Contains 372020 sequences. (Running on oeis4.)