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.

Showing 1-2 of 2 results.

A081843 a(1)=0, a(n)=a(n-1)+5 if n is already in the sequence, a(n)=a(n-1)+4 otherwise.

Original entry on oeis.org

0, 4, 8, 13, 17, 21, 25, 30, 34, 38, 42, 46, 51, 55, 59, 63, 68, 72, 76, 80, 85, 89, 93, 97, 102, 106, 110, 114, 118, 123, 127, 131, 135, 140, 144, 148, 152, 157, 161, 165, 169, 174, 178, 182, 186, 191, 195, 199, 203, 207, 212, 216, 220, 224, 229, 233, 237, 241
Offset: 1

Views

Author

Benoit Cloitre, Apr 11 2003

Keywords

Comments

A high proportion of terms are the same as A004938, which is the nearest integer to n*r, where r=2+sqrt(5) as defined in the formula section. Allowing for the difference in offset, the first 3 terms to differ are those which have values 46, 63 and 118 instead of 47, 64 and 119. - Peter Munn, Aug 07 2019
In the Fokkink-Joshi paper, this sequence is the Cloitre (0,0,5,4)-hiccup sequence. - Michael De Vlieger, Jul 29 2025

Crossrefs

Programs

  • Mathematica
    Clear[used];used={}; nxt[{n_,a_}]:=Module[{c=If[MemberQ[ used,n+1],5,4]},Flatten[ AppendTo[ used,a+c]];{n+1,c+a}]; NestList[nxt,{1,0},60][[All,2]] (* Harvey P. Dale, Aug 16 2021 *)

Formula

a(n) = floor(r*n-(5*r-1)/(r+1)) where r=2+sqrt(5).

A081839 a(1)=0, a(n)=a(n-1)+4 if n is already in the sequence, a(n)=a(n-1)+5 otherwise.

Original entry on oeis.org

0, 5, 10, 15, 19, 24, 29, 34, 39, 43, 48, 53, 58, 63, 67, 72, 77, 82, 86, 91, 96, 101, 106, 110, 115, 120, 125, 130, 134, 139, 144, 149, 154, 158, 163, 168, 173, 178, 182, 187, 192, 197, 201, 206, 211, 216, 221, 225, 230, 235, 240, 245, 249, 254, 259, 264, 269
Offset: 1

Views

Author

Benoit Cloitre, Apr 11 2003

Keywords

Comments

In the Fokkink-Joshi paper, this sequence is the Cloitre (0,0,4,5)-hiccup sequence. - Michael De Vlieger, Jul 29 2025

Crossrefs

Programs

Formula

a(n) = floor(r*n-(3*r+1)/(r-1)) where r = (1/2) *(5+sqrt(21)) = 4.79128784747792...
Showing 1-2 of 2 results.