cp's OEIS Frontend

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.

A039914 Smallest k>1 such that k(p-1)-1 is divisible by p^2, p=n-th prime.

This page as a plain text file.
%I A039914 #11 Mar 10 2019 14:52:16
%S A039914 5,5,19,41,109,155,271,341,505,811,929,1331,1639,1805,2161,2755,3421,
%T A039914 3659,4421,4969,5255,6161,6805,7831,9311,10099,10505,11341,11771,
%U A039914 12655,16001,17029,18631,19181,22051,22649,24491,26405,27721,29755,31861
%N A039914 Smallest k>1 such that k(p-1)-1 is divisible by p^2, p=n-th prime.
%e A039914 a(1)=5 because 5(2-1)-1=4 is divisible by 2^2.
%o A039914 (PARI) a(n) = {my(p = prime(n), k = 2); while ((k*(p-1)-1) % p^2, k++); k;} \\ _Michel Marcus_, Sep 28 2013
%Y A039914 Cf. A039678.
%Y A039914 A306190 is an essentially identical sequence.
%K A039914 nonn
%O A039914 1,1
%A A039914 _Felice Russo_
%E A039914 Added constraint on k to the definition, otherwise a(1)=1 - _R. J. Mathar_, Oct 10 2010