OFFSET
2,1
LINKS
Chai Wah Wu, Table of n, a(n) for n = 2..47
MAPLE
A290329 := proc(n)
local nitr ;
nitr := n ;
while ( not isprime(nitr) and nitr <> 1) do
nitr := A289667(nitr) ;
end do:
return nitr ;
end proc:
seq(A290329(n), n=1..20) ; # R. J. Mathar, Aug 05 2017
MATHEMATICA
Table[NestWhile[FromDigits[#, 3] &@ Flatten@ Map[IntegerDigits[#, 3] &, FactorInteger[#] /. {p_, e_} /; p > 0 :> If[e == 1, p, {p, e}]] &, n, ! PrimeQ@ # &], {n, 2, 38}] (* Michael De Vlieger, Jul 29 2017 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Chai Wah Wu, Jul 27 2017
STATUS
approved