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.

A184581 a(n) = floor((n + 1/4)*(2 + sqrt(2))).

Original entry on oeis.org

4, 7, 11, 14, 17, 21, 24, 28, 31, 34, 38, 41, 45, 48, 52, 55, 58, 62, 65, 69, 72, 75, 79, 82, 86, 89, 93, 96, 99, 103, 106, 110, 113, 116, 120, 123, 127, 130, 134, 137, 140, 144, 147, 151, 154, 157, 161, 164, 168, 171, 174, 178, 181, 185, 188, 192, 195, 198
Offset: 1

Views

Author

Clark Kimberling, Jan 17 2011

Keywords

Comments

Complement of A184580.

Crossrefs

Cf. A184580.

Programs

  • Magma
    [Floor((n+1/4)*(2+Sqrt(2))): n in [1..60]]; // Vincenzo Librandi, Jun 10 2015
    
  • Mathematica
    r=2^(1/2); c=1/4; s=r/(r-1);
    Table[Floor[n*r-c*r],{n,1,120}]  (* A184580 *)
    Table[Floor[n*s+c*s],{n,1,120}]  (* this sequence *)
  • PARI
    for(n=1,30, print1(floor((n+1/4)*(2+sqrt(2))), ", ")) \\ G. C. Greubel, Jan 27 2018