A345147 a(1)=1. If a(n) is a novel term, a(n+1) = A000005(a(n)). If a(n) is a repeat term, a(n+1) = a(n)+m, where m is the least prior term (which once used in this way is not used again).
1, 1, 2, 2, 3, 2, 4, 3, 5, 2, 4, 6, 4, 7, 2, 5, 7, 11, 2, 6, 8, 4, 8, 12, 6, 11, 16, 5, 11, 16, 22, 4, 10, 4, 8, 12, 19, 2, 9, 3, 5, 8, 13, 2, 10, 12, 20, 6, 14, 4, 10, 14, 22, 31, 2, 12, 14, 24, 8, 18, 6, 14, 20, 31, 42, 8, 19, 27, 4, 16, 20, 32, 6, 18, 24, 36
Offset: 1
Keywords
Examples
a(1)=1 is a novel term so a(2)=d(1)=1. Since a(2) is a repeat term and 1 is the least unused prior term, a(3)=a(2)+1=2. Then since 2 is a novel term, a(4)=d(a(3))=d(2)=2; and so on.
Links
- Michael De Vlieger, Table of n, a(n) for n = 1..10001
- Michael De Vlieger, The Cliffside Sequence, analysis of this sequence with code, 2021.
- Michael De Vlieger, Scatterplot of a(n) for n = 1..2^18 showing quasi-radial striations and "chatter" in catastrophic episodes.
- Michael De Vlieger, Annotated scatterplot of a(n) for n = 1..2^10 showing records in red, local minima in blue, m resulting from the novel condition, thus d(a(n)) in gold, and m resulting from the extant condition in green.
- Michael De Vlieger, Scatterplot of a(n) for n = 1..2^12 labeling the first indices of extant-condition catastrophes.
Programs
-
Mathematica
Block[{a = {1}, s = {}}, Do[If[FreeQ[#2, #1], AppendTo[a, DivisorSigma[0, a[[-1]]] ], AppendTo[a, a[[-1]] + First[s] ]; Set[s, Rest@ s]] & @@ {First[#1], #2} & @@ TakeDrop[a, -1]; Set[s, Insert[s, a[[-2]], LengthWhile[s, # < a[[-2]] &] + 1]], 105]; a] (* Michael De Vlieger, Jun 15 2021 *)
Comments