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.

A227195 a(n) = one less than the first i >= 1 for which the Kronecker symbol K(i,n) is either 0 or -1. Or the maximal value u such that all K(1,n), K(2,n), ... up to K(u,n) have +1 as their values.

This page as a plain text file.
%I A227195 #14 Nov 08 2018 21:13:03
%S A227195 1,1,1,1,1,2,1,2,1,1,1,1,1,2,1,2,1,1,1,1,1,4,1,4,1,1,1,1,1,2,1,2,1,1,
%T A227195 1,1,1,2,1,2,1,1,1,1,1,4,1,6,1,1,1,1,1,2,1,2,1,1,1,1,1,2,1,2,1,1,1,1,
%U A227195 1,6,1,4,1,1,1,1,1,2,1,2,1,1,1,1,1,2,1,2,1,1,1,1,1,4,1,4,1,1,1,1,1,2,1,2
%N A227195 a(n) = one less than the first i >= 1 for which the Kronecker symbol K(i,n) is either 0 or -1. Or the maximal value u such that all K(1,n), K(2,n), ... up to K(u,n) have +1 as their values.
%C A227195 A112050 interleaved with A000012.
%H A227195 Antti Karttunen, <a href="/A227195/b227195.txt">Table of n, a(n) for n = 2..10000</a>
%F A227195 a(n) = A227196(n)-1 for all n >= 2.
%o A227195 (PARI) A227195(n) = for(k=2, n, if(kronecker(k, n)<1, return(k-1))); \\ _Antti Karttunen_, Nov 08 2018
%Y A227195 Bisections: A112050 (for odd terms from 3 onward), A000012 (for all even terms).
%K A227195 nonn
%O A227195 2,6
%A A227195 _Antti Karttunen_, Jul 06 2013
%E A227195 Data section extended up to a(105) by _Antti Karttunen_, Nov 08 2018