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!)
A229081 Numbers n such that there exists a square m^2 with 3n^2 - n <= m^2 <= 3n^2 + n. 1
1, 3, 4, 7, 8, 11, 12, 14, 15, 16, 18, 19, 22, 23, 26, 27, 29, 30, 33, 34, 37, 38, 40, 41, 42, 44, 45, 48, 49, 52, 53, 55, 56, 57, 59, 60, 63, 64, 67, 68, 70, 71, 74, 75, 78, 79, 82, 83, 85, 86, 89, 90, 93, 94, 96, 97, 98, 100, 101, 104, 105, 108, 109, 111, 112, 113, 115, 116, 119, 120, 123, 124, 126 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
EXAMPLE
There is a square between 3*4^2-4 and 3*4^2+4 (44<=49<=52) but not between 3*5^2-5=70 and 3*5^2+5=80, so 4 is in sequence but not 5.
MAPLE
filter:= n -> ceil(sqrt(3*n^2-n))<=floor(sqrt(3*n^2+n)):
select(filter, [$1..200]); # Robert Israel, Jan 05 2020
PROG
(PARI) for(n=1, 200, for(i=-n, n, f=0; if(issquare(3*n*n+i), f=1; break)); if(f, print1(n, ", ")))
(Magma) [n: n in [1..130] | exists{3*n^2+i: i in [-n..n] | IsSquare(3*n^2+i)}]; // Bruno Berselli, Sep 13 2013
CROSSREFS
Sequence in context: A213373 A363353 A332059 * A070874 A187582 A288553
KEYWORD
nonn
AUTHOR
Ralf Stephan, Sep 13 2013
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 19 05:19 EDT 2024. Contains 371782 sequences. (Running on oeis4.)