This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.
%I A113398 #6 Aug 08 2023 14:14:50 %S A113398 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 A113398 1,12,8,9,11,10,11,13,2,14,12,15,1,2,13,16,14,12,17,3 %N A113398 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 A113398 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 A113398 11^2-7^2 = 6+6*11 (first "6"); 13^2-11^2 = 9+3*13 (3rd "3"); etc. %Y A113398 Cf. A113396, A113397. %K A113398 nonn %O A113398 1,3 %A A113398 _Marian Kraus_, Oct 26 2005