A232531 Numbers n such that the equation a^2 + 2*n*b^2 = 2*c^2 + n*d^2 has no solutions in positive integers for a, b, c, d.
3, 5, 6, 10, 11, 12, 13, 15, 19, 20, 21, 22, 24, 26, 27, 29, 30, 33, 35, 37, 38, 39, 40, 42, 43, 44, 45, 48, 51, 52, 53, 54, 55, 57, 58, 59, 60, 61, 65, 66, 67, 69, 70, 74, 75, 76, 77, 78, 80, 83, 84, 85, 86, 87, 88, 90, 91, 93, 95, 96, 99, 101, 102, 104, 105, 106
Offset: 1
Keywords
Examples
n = 3 is a member of this sequence because there is no positive integer m which can be simultaneously written as both x^2+6*y^2 and 2*x^2+3*y^2. The former requires the sum of {2, 3, 5, 11} mod 24 prime factors of m to be even, while the latter requires the sum of {2, 3, 5, 11} mod 24 prime factors of m to be odd. n = 5 is a member of this sequence because there is no positive integer m which can be simultaneously written as both x^2+10*y^2 and 2*x^2+5*y^2. The former requires the sum of {2, 5, 7, 13, 23, 37} mod 40 prime factors of m to be even, while the latter requires the sum of {2, 5, 7, 13, 23, 37} mod 40 prime factors of m to be odd. n = 7 is not a member of this sequence because 15 = 1^2 + 14*1^2 = 2*2^2 + 7*1^2.
Links
- Robert Israel, Table of n, a(n) for n = 1..10000
- V. Raman, Proof for individual terms
Programs
-
Maple
filter:= n -> [isolve(x^2-2*y^2=n)]=[] and [isolve(x^2-2*y^2=-n)]=[]: select(filter, [$1..200]); # Robert Israel, Apr 29 2020
-
PARI
for(n=1,10000,flag=0;v=factor(n);for(i=1,matsize(v)[1],if((v[i,1]%8==3||v[i,1]%8==5)&&v[i,2]%2==1,flag=1;break));if(flag==1,print1(n", ")))
-
Python
from itertools import count, islice from sympy import factorint def A232531_gen(): # generator of terms return filter(lambda n:any((2 < p & 7 < 7) and e & 1 for p, e in factorint(n).items()),count(1)) A232531_list = list(islice(A232531_gen(),30)) # Chai Wah Wu, Jun 28 2022
Comments