login
How many times did the value of k appear at the previous primes including the n-th one? (Prime(n+1))^2-(Prime(n))^2 = a+k*(Prime(n+1)) if a is element of {0,1,...,Prime(n+1)-1}.
0

%I #6 Aug 08 2023 14:14:50

%S 1,1,2,1,3,1,4,2,1,5,1,3,6,4,2,3,7,4,5,8,5,6,6,1,7,9,8,10,9,1,10,7,11,

%T 1,12,8,9,11,10,11,13,2,14,12,15,1,2,13,16,14,12,17,3

%N How many times did the value of k appear at the previous primes including the n-th one? (Prime(n+1))^2-(Prime(n))^2 = a+k*(Prime(n+1)) if a is element of {0,1,...,Prime(n+1)-1}.

%e 3^2-2^2 = 2+1*3 (first "1"); 5^2-3^2 = 1+3*5 (first "3"); 7^2-5^2 = 3+3*7 (2nd "3");

%e 11^2-7^2 = 6+6*11 (first "6"); 13^2-11^2 = 9+3*13 (3rd "3"); etc.

%Y Cf. A113396, A113397.

%K nonn

%O 1,3

%A _Marian Kraus_, Oct 26 2005