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

 

Logo

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 60, we have over 367,000 sequences, and we’ve crossed 11,000 citations (which often say “discovered thanks to the OEIS”).

Other ways to Give
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A232608 Triangular numbers t such that distances from t to three nearest squares are three triangular numbers. 2
1, 10, 15, 253, 325, 11026, 237016, 8439886, 1119946128 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
Triangular numbers in A232501.
LINKS
PROG
(C99)
#include <stdio.h>
#include <math.h>
typedef unsigned long long U64;
int isTriang(U64 x) {
x+=x;
U64 r = sqrt(x);
return (r*(r+1)==x);
}
int main() {
for (U64 n=0, i=0; i < (1ULL<<32); ++i) {
U64 s, d, d1, d2, d3;
s = sqrt(n+=i);
d1 = n - s*s;
if (!isTriang(d1)) continue;
d2 = (s+1)*(s+1) - n;
if (!isTriang(d2)) continue;
d3 = (s+2)*(s+2) - n;
if (s) {
d = n - (s-1)*(s-1);
if (d < d3) d3 = d;
}
if (isTriang(d3)) printf("%llu, ", n);
}
}
(Haskell)
a232608 n = a232608_list !! (n-1)
a232608_list = filter f $ tail a000217_list where
f x = all ((== 1) . a010054) $ init $ sort $
map (abs . (x -) . (^ 2) . (+ (a000196 x))) [-1..2]
-- Reinhard Zumkeller, Mar 16 2014
CROSSREFS
Sequence in context: A278349 A114703 A134515 * A175335 A167788 A341012
KEYWORD
nonn,hard,more
AUTHOR
Alex Ratushnyak, Feb 23 2014
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 December 2 04:17 EST 2023. Contains 367506 sequences. (Running on oeis4.)