OFFSET
1,17
COMMENTS
Also floor((n^8-1)/(8*n^7)).
FORMULA
Also, a(n) = floor((n^8-n^7)/(8n^7-7n^6)). - Mohammad K. Azarian, Nov 18 2007
a(n) = A180969(3,n).
a(n) = (r - 8 + 4*sin(r*Pi/8))/16 where r = 2*n - 1 - 2*cos(n*Pi/2) - cos(n*Pi) + 2*sin(n*Pi/2). - Wesley Ivan Hurt, Oct 04 2018
MAPLE
MATHEMATICA
Table[Floor[(n-1)/8], {n, 100}] (* Wesley Ivan Hurt, Feb 27 2014 *)
Table[PadRight[{}, 8, n], {n, 0, 10}]//Flatten (* Harvey P. Dale, Apr 13 2020 *)
PROG
(PARI) a(n)=(n-1)\8 \\ Charles R Greathouse IV, Jun 18 2013
(Magma) [(n - 1) div 8 : n in [1..90]]; // Vincenzo Librandi, Oct 05 2018
(Python)
def A132292(n): return n-1>>3 # Chai Wah Wu, Jul 27 2022
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Mohammad K. Azarian, Nov 06 2007
EXTENSIONS
Offset corrected by Mohammad K. Azarian, Nov 20 2008
New name from Wesley Ivan Hurt, Jun 17 2013
STATUS
approved