Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Search: a191771 -id:a191771
     Sort: relevance | references | number | modified | created      Format: long | short | data
Lim f(f(...f(n)...)) where f(n) is the fractal sequence A022446.
+10
6
1, 2, 3, 1, 1, 2, 1, 3, 1, 1, 2, 2, 1, 1, 3, 1, 3, 1, 1, 2, 2, 1, 1, 1, 3, 1, 3, 1, 2, 1, 2, 2, 2, 1, 1, 1, 1, 3, 1, 3, 1, 1, 3, 2, 1, 2, 1, 2, 2, 1, 1, 1, 3, 1, 3, 1, 3, 1, 1, 1, 1, 3, 2, 1, 2, 1, 2, 2, 2, 1, 2, 1, 1, 1, 3, 1, 3, 1, 1, 3, 1, 1, 1, 1, 1, 3
OFFSET
1,2
COMMENTS
Suppose that f(1), f(2), ... is a fractal sequence (such as 1, 2, 1, 2, 3, 1, 2, 3, 4, 1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 6, ..., which contains itself as a proper subsequence - if the first occurrence of each n is deleted, the remaining sequence is identical to the original; see the Wikipedia article for a rigorous definition). Then for each n>=1, the limit L(n) of composites f(f(f...f(n)...)) exists and is one of the numbers in the set {k : f(k)=k}. If f(2)>2, then L(n)=1 for all n; if f(2)=2 and f(3)>3, then L(n) equals 1 or 2 for all n. Examples: A020903, A191770, A191774.
EXAMPLE
Write the counting numbers and A022446 like this:
1..2..3..4..5..6..7..8..9..10..11..12..13..14..15..
1..2..3..1..4..2..5..8..1..4...6...2...7...5...3...
It is then easy to check composites:
1->1, 2->2, 3->3, 4->1, 5->4->1, 6->2, 7->5->4->1,...
MATHEMATICA
g[n_] := Length[Select[Table[FixedPoint[i + PrimePi[#] + 1 &, i + PrimePi[i] + 1], {i, n}], # <= n &]];
f[n_] := PrimePi[NestWhile[g, n, ! PrimeQ[#] && # != 1 &]] + 1;
Array[f, 80] (* A022446 *)
h[n_] := Nest[f, n, 40]; t = Table[h[n], {n, 1, 300}] (* A191770 *)
Flatten[Position[t, 1]] (* A191771 *)
Flatten[Position[t, 2]] (* A191772 *)
Flatten[Position[t, 3]] (* A191773 *)
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jun 16 2011
STATUS
approved
Positions of 2 in A191770.
+10
3
2, 6, 11, 12, 20, 21, 29, 31, 32, 33, 44, 46, 48, 49, 63, 65, 67, 68, 69, 71, 87, 90, 92, 93, 94, 96, 107, 113, 118, 121, 123, 124, 125, 127, 128, 131, 142, 148, 155, 159, 161, 162, 164, 166, 168, 171, 185, 191, 192, 197, 202, 206, 208, 209, 211, 212, 214
OFFSET
1,1
COMMENTS
See A191770.
MATHEMATICA
(See A191770.)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jun 16 2011
STATUS
approved
Positions of 3 in A191770.
+10
3
3, 8, 15, 17, 25, 27, 38, 40, 43, 53, 55, 57, 62, 75, 77, 80, 86, 89, 101, 102, 105, 110, 117, 120, 134, 135, 140, 145, 154, 157, 158, 167, 175, 176, 181, 183, 188, 201, 204, 205, 215, 224, 225, 232, 235, 239, 242, 251, 256, 260, 261, 263, 274, 283, 286, 287
OFFSET
1,1
COMMENTS
See A191770.
MATHEMATICA
(See A191770.)
CROSSREFS
KEYWORD
nonn
AUTHOR
Clark Kimberling, Jun 16 2011
STATUS
approved

Search completed in 0.003 seconds