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!)
A224954 Numbers n such that a positive number m < n exists such that n-m, n+m, and n*m are oblong numbers (A002378). 2
42, 146, 2850, 9074, 13464, 17640, 20502, 32406, 53892, 55352, 59124, 229284, 340890, 344904, 507012, 562466, 1016076, 1958082, 3938256, 6087890, 6924960, 7645106, 8070342, 11694540, 11861892, 12721884, 12960020, 15959802, 18999750, 34863842, 40503060, 42000420, 55377282 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
COMMENTS
Sequence of corresponding m's begins: 30, 36, 1980, 2268, 11658, 16770, 3990, 900, 14490, 54540, ...
Conjectures:
1. The sequence is infinite.
2. There is only one m for each n (this is true for n < 2^26).
LINKS
PROG
(Java)
public class A224954 {
public static long sr0 = 1;
public static boolean[] Oblong = new boolean[1 << 27];
public static boolean isOblong(long a) {
long b, s, sr = sr0;
while (a < sr*(sr+1)) sr>>=1;
b = sr>>1;
while (b!=0) {
s = sr+b;
if (a >= s*(s+1)) sr = s;
b>>=1;
}
if (a == sr*(sr+1)) return true;
return false;
}
public static void main (String[] args) {
for (int i = 0; i*(i+1) < (1 << 27); ++i) Oblong[i*(i+1)] = true;
for (long a = 0; a < (1 << 26); a+=2) {
long s = 1L << 30, obn = 0, count = 0, lastB = 0;
while (a*a < s*(s+1)) s>>=1;
sr0 = s;
for (long i = 2; obn < a; i+=2) {
long b = a - obn;
if (Oblong[(int)(a*2-obn)])
if (isOblong(a*(a-obn))) { ++count; lastB = b; }
obn += i;
}
if (count!=0) System.out.printf("\n%d %d %d ", a, lastB, count);
if ((a & 0x3fff)==0) System.out.printf(".");
}
}
}
CROSSREFS
Sequence in context: A044755 A262424 A230932 * A299131 A158479 A188126
KEYWORD
nonn
AUTHOR
Alex Ratushnyak, Apr 20 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 August 12 12:06 EDT 2024. Contains 375092 sequences. (Running on oeis4.)