cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A278068 Relative of Hofstadter Q-sequence: a(1) = 57, a(2) = 2; thereafter a(n) = a(n-a(n-1)) + a(n-a(n-2)).

Original entry on oeis.org

57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 2, 57, 59, 2, 116, 2, 116, 2, 116, 2, 116, 2, 116, 2, 116, 2, 116
Offset: 1

Views

Author

Nathan Fox, Nov 13 2016

Keywords

Comments

In calculating terms of this sequence, use the convention that a(n)=0 for n<=0.
This sequence is eventually, beginning with a(3128), quasilinear with quasiperiod 1402.

Crossrefs

Programs

  • Mathematica
    a[1] = 57; a[2] = 2; a[n_] := a[n] = If[n < 1, 0, a[n-a[n-1]] + a[n-a[n-2]]];
    Array[a, 100] (* Paolo Xausa, May 31 2024 *)