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.

A007064 Numbers not of form "nearest integer to n*tau", tau = (1+sqrt(5))/2.

Original entry on oeis.org

1, 4, 7, 9, 12, 14, 17, 20, 22, 25, 27, 30, 33, 35, 38, 41, 43, 46, 48, 51, 54, 56, 59, 62, 64, 67, 69, 72, 75, 77, 80, 82, 85, 88, 90, 93, 96, 98, 101, 103, 106, 109, 111, 114, 117, 119, 122, 124, 127, 130, 132, 135
Offset: 1

Views

Author

Keywords

Comments

First column of Stolarsky array.
This sequence and A057843 are very similar - this can be seen if the terms equal to 4 are aligned. - Thomas Baruchel, Nov 04 2003

References

  • Clark Kimberling, "Stolarsky interspersions," Ars Combinatoria 39 (1995) 129-138.
  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Complement of A007067.

Programs

  • Mathematica
    max = 100; Complement[ Range[ max*GoldenRatio], Round[ Range[max]*GoldenRatio]] (* Jean-François Alcover, Oct 10 2011 *)
  • PARI
    a(n) = tau=(1+sqrt(5))/2; floor(n*(1+tau) - tau/2) \\ Michel Marcus, May 21 2013
    
  • Python
    from math import isqrt
    def A007064(n): return (6*n-1+isqrt(5*((n<<1)-1)**2))>>2 # Chai Wah Wu, Feb 11 2025

Formula

a(n) = floor[n*(1+tau)-tau/2] =floor[n*2.6180...-0.8090...]. - Henry Bottomley, Sep 03 2001