|
|
A094804
|
|
Number of primes in the trajectory of n under the juggler map of A094683.
|
|
0
|
|
|
0, 0, 1, 4, 1, 3, 1, 2, 1, 2, 4, 2, 4, 2, 4, 2, 1, 2, 1, 3, 1, 2, 1, 5, 1, 2, 3, 2, 3, 5, 3, 3, 3, 2, 3, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 1, 1, 3, 1, 4, 2, 3, 2, 3, 2, 2, 2, 1, 2, 4, 2, 3, 2, 1, 1, 1, 1, 6, 1, 4, 1, 2, 1, 3, 1, 1, 1, 3, 1, 4, 1, 1, 2, 3, 2, 4, 2, 3, 2, 3, 2, 5, 2, 5, 2, 2, 2, 4, 2, 1, 4, 3, 4, 2, 4
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,4
|
|
LINKS
|
|
|
EXAMPLE
|
3 -> 5 -> 11 -> 36 -> 6 -> 2 -> 1, so in this trajectory 3, 5, 11 and 2 are primes, hence a(3) = 4.
|
|
MATHEMATICA
|
Table[Count[NestWhileList[If[EvenQ[#], Floor[Sqrt[#]], Floor[(Sqrt[#])^3]]&, n, #>1&], _?PrimeQ], {n, 0, 120}] (* Harvey P. Dale, Sep 26 2021 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|