login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A121488 a(n) = 8*n^2 - floor(n*sqrt(8))^2. 1
4, 7, 8, 7, 4, 32, 31, 28, 23, 16, 7, 63, 56, 47, 36, 23, 8, 92, 79, 64, 47, 28, 7, 119, 100, 79, 56, 31, 4, 144, 119, 92, 63, 32, 196, 167, 136, 103, 68, 31, 223, 188, 151, 112, 71, 28, 248, 207, 164, 119, 72, 23, 271, 224, 175, 124, 71, 16, 292, 239, 184, 127, 68, 7 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Charles R Greathouse IV, Table of n, a(n) for n = 1..10000
FORMULA
a(n) = 8*n^2 - floor(n*sqrt(8))^2.
EXAMPLE
a(2) = 8*2^2-floor(2*sqrt(8))^2 = 32-25 = 7.
MAPLE
A121488:=n->8*n^2-floor(n*sqrt(8))^2: seq(A121488(n), n=1..100); # Wesley Ivan Hurt, Feb 15 2017
PROG
(PARI) a(n) = 8*n^2 - sqrtint(8*n^2)^2 \\ Charles R Greathouse IV, Feb 15 2017
CROSSREFS
Sequence in context: A272490 A261654 A332504 * A115291 A108615 A310937
KEYWORD
nonn,easy
AUTHOR
Clark Kimberling, Aug 02 2006
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 08:27 EDT 2024. Contains 371964 sequences. (Running on oeis4.)