OFFSET
0,1
COMMENTS
If a(n) < n for some n, then a(n+1) > n+1.
If a(n) > n, a(n+1) > n+1, and a(n+2) > n+2 for some n, then a(n+3) < n+3.
1 < a(n) for all n.
sqrt(n/6) < a(n) <= 7n/2 - 9/2 for all n.
a(p)>p for all primes p.
If one were to use the same rule to generate this sequence with any other initial value that is congruent to 4 or 8 (mod 12), that sequence would agree with this one for all n>3.
If one were to use the same rule to generate this sequence with an initial term that is not congruent to 4 or 8 (mod 12), then it would output the number 1 before the 5th term. When a sequence follows a(n)’s rules and outputs the number 1 at some index k, one gets the following quasi-periodic behavior: 1, k+2, 1, k+4, 1, k+6, etc., and are as such “boring” sequences.
LINKS
Sam Chapman, Table of n, a(n) for n = 0..10000
EXAMPLE
a(12) = 3 and gcd(3, 13) = 1, so a(13) = 3 + 13 = 16. gcd(16, 14) = 2, so a(14) = 14/2 = 7.
MATHEMATICA
s={4}; Do[G=GCD[s[[-1]], n]; AppendTo[s, If[G==1, s[[-1]]+n, n/G]], {n, 71}]; s (* James C. McMahon, Mar 02 2025 *)
PROG
(PARI) lista(nn) = my(v = vector(nn)); v[1] = 4; for (n=2, nn, my(g=gcd(v[n-1], n-1)); if (g==1, v[n] = v[n-1] + n-1, v[n] = (n-1)/g); ); v; \\ Michel Marcus, Feb 26 2025
CROSSREFS
KEYWORD
nonn,new
AUTHOR
Sam Chapman, Feb 24 2025
STATUS
approved