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!)
A364168 Numbers that can be written in more than one way in the form (j+2k)^2-(j+k)^2-j^2 with j,k>0. 0
15, 27, 32, 35, 36, 39, 51, 55, 60, 63, 64, 75, 84, 87, 91, 95, 96, 99, 100, 108, 111, 115, 119, 123, 128, 132, 135, 140, 143, 144, 147, 155, 156, 159, 160, 171, 175, 180, 183, 187, 192, 195, 196, 203, 204, 207, 215, 219, 220, 224, 228, 231, 235, 240, 243, 247, 252, 255 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
EXAMPLE
27 is a term since (6+2*3)^2 - (6+3)^2 - 6^2 = (20+2*7)^2 - (20+7)^2 - 20^2 = 27.
PROG
(Python)
def g(L):
D = {}
SQ = [x*x for x in range(0, 3*L+1)]
for j in range(1, L):
for k in range(1, L):
q = SQ[j + k * 2] - SQ[j + k] - SQ[j]
if (0 < q < L):
if q not in D:
D[q] = 1
else:
D[q] += 1
return [x for x in sorted(D.keys()) if D[x] > 1]
print(g(256))
(Python)
from sympy import divisors
def isok(A_n):
s = 0
for d in divisors(A_n):
t = A_n // d + d
q, r = divmod(t, 4)
if r == 0 and q < d: s += 1
return s > 1
CROSSREFS
Sequence in context: A359205 A080945 A080946 * A253056 A091236 A354714
KEYWORD
nonn
AUTHOR
Darío Clavijo, Jul 12 2023
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 28 15:56 EDT 2024. Contains 372916 sequences. (Running on oeis4.)