The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A340507 a(n) = floor(sqrt(2*n)) - A003056(n). 1
0, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0 (list; graph; refs; listen; history; text; internal format)
OFFSET
0
COMMENTS
This is A172471 - A003056.
Conjecture: This is an unsigned version of A072785.
LINKS
PROG
(PARI) a(n) = sqrtint(2*n) - (sqrtint(8*n+1)-1)\2; \\ Michel Marcus, Jan 25 2021
(Python)
from math import isqrt
def A340507(n): return isqrt(m:=n<<1)-(isqrt((m<<2)+1)-1>>1) # Chai Wah Wu, Aug 09 2022
CROSSREFS
Sequence in context: A288520 A285177 A144595 * A072785 A188297 A289128
KEYWORD
nonn
AUTHOR
N. J. A. Sloane, Jan 25 2021
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 May 16 17:27 EDT 2024. Contains 372554 sequences. (Running on oeis4.)