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.

A316568 Largest k such that 1^2 + n, 2^2 + n, ..., k^2 + n are composite.

This page as a plain text file.
%I A316568 #11 Aug 04 2022 15:03:48
%S A316568 0,0,1,0,5,0,1,2,1,0,5,0,1,2,1,0,5,0,1,2,3,0,5,6,1,8,1,0,11,0,3,2,1,2,
%T A316568 5,0,1,2,1,0,23,0,1,2,3,0,5,4,1,2,3,0,5,4,1,8,1,0,17,0,5,2,1,2,5,0,1,
%U A316568 8,1,0,5,0,3,2,1,4,5,0,1,2,3,0,11,4,1,8,3,0,11,6,3,2,1,2,5,0,1,2,1,0
%N A316568 Largest k such that 1^2 + n, 2^2 + n, ..., k^2 + n are composite.
%H A316568 Harvey P. Dale, <a href="/A316568/b316568.txt">Table of n, a(n) for n = 1..1000</a>
%F A316568 a(n) = A085099(n) - 1.
%t A316568 lk[n_]:=Module[{k=1},While[CompositeQ[k^2+n],k++];k-1]; Array[lk,100] (* _Harvey P. Dale_, Aug 04 2022 *)
%Y A316568 Cf. A085099.
%K A316568 nonn
%O A316568 1,5
%A A316568 _Seiichi Manyama_, Jul 06 2018