login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A364197 a(n+1) = a(|n-a(n)^2|) + 1, a(0) = 0. 3
0, 1, 1, 2, 2, 1, 3, 3, 2, 3, 1, 4, 2, 3, 3, 2, 5, 4, 2, 4, 3, 5, 3, 4, 4, 3, 6, 2, 5, 3, 4, 4, 3, 5, 3, 4, 5, 5, 3, 4, 5, 3, 4, 7, 4, 6, 4, 5, 4, 4, 6, 4, 5, 3, 5, 4, 5, 5, 4, 5, 4, 5, 6, 7, 4, 5, 6, 5, 5, 8, 2, 7, 4, 6, 6, 4, 6, 6, 4, 7, 5, 5, 6, 5, 5, 6, 5, 6, 5, 8, 4, 7, 5, 6, 6, 5, 3, 7, 5, 7 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,4
LINKS
FORMULA
a(n) ~ (3n)^(1/3) (conjectured).
EXAMPLE
a(1) = a(|0-a(0)^2|)+1 = a(|0-0|)+1 = a(0)+1 = 1.
a(2) = a(|1-a(1)^2|)+1 = a(|1-1|)+1 = a(0)+1 = 1.
a(3) = a(|2-a(2)^2|)+1 = a(|2-1|)+1 = a(1)+1 = 2.
a(4) = a(|3-a(3)^2|)+1 = a(|3-4|)+1 = a(1)+1 = 2.
a(5) = a(|4-a(4)^2|)+1 = a(|4-4|)+1 = a(0)+1 = 1.
MATHEMATICA
a[0] = 0; a[n_] := a[n] = a[Abs[n - 1 - a[n - 1]^2]] + 1; Array[a, 100, 0] (* Amiram Eldar, Jul 13 2023 *)
PROG
(Python)
a = [0]; [a.append(a[abs(n-a[n]**2)]+1) for n in range(100)]
CROSSREFS
Cf. A364198 (indices of record highs).
Sequence in context: A345032 A182535 A181186 * A097291 A269501 A254044
KEYWORD
nonn
AUTHOR
Rok Cestnik, Jul 13 2023
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified July 14 02:38 EDT 2024. Contains 374291 sequences. (Running on oeis4.)