A089294 Smallest prime p_k such that n can be written as a "plus-minus" sum n=sum_(i=1..k)e_i*(p_i)^2 with distinct primes p_i<=p_k, where e_i is 1 or -1.
19, 13, 19, 13, 2, 3, 13, 19, 13, 3, 13, 7, 5, 3, 13, 7, 5, 13, 13, 7, 5, 5, 13, 13, 7, 5, 13, 13, 7, 5, 5, 13, 13, 7, 5, 13, 7, 7, 5, 13, 7, 17, 11, 11, 7, 7, 17, 11, 13, 7, 17, 11, 11, 7, 7, 17, 11, 13, 7, 11, 11, 7, 7, 11, 13, 7, 17, 11, 11, 7, 7, 17, 11, 13, 7, 17, 11, 11, 7, 7, 17, 11
Offset: 0
Keywords
Examples
a(22)=13 because 22 can be represented as -13^2+11^2+7^2+5^2-2^2. The corresponding representation with the minimum number of terms is 22=19^2-13^2-11^2-7^2 (A088934(22)=19, A088910(22)=4 terms)
Comments