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.

A296077 a(n) = 1 if 1 + A002322(n) is prime, 0 otherwise, where A002322 is Carmichael lambda.

This page as a plain text file.
%I A296077 #15 Sep 23 2020 12:51:59
%S A296077 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,1,1,0,1,1,
%T A296077 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,
%U A296077 1,1,1,1,1,1,0,1,1,1,1,1,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,1,1,0,1,1,1,1,1,1,1,1,1,0,1,1,1,1,0,1,1,1,0,1
%N A296077 a(n) = 1 if 1 + A002322(n) is prime, 0 otherwise, where A002322 is Carmichael lambda.
%C A296077 Out of the first 65537 values, 39743 are 1's (indicating primes), and 25794 are 0's, indicating nonprimes.
%H A296077 Antti Karttunen, <a href="/A296077/b296077.txt">Table of n, a(n) for n = 1..65537</a>
%H A296077 <a href="/index/Ch#char_fns">Index entries for characteristic functions</a>
%F A296077 a(n) = A010051(A263027(n)) = A010051(1+A002322(n)).
%t A296077 Table[If[PrimeQ[CarmichaelLambda[n]+1],1,0],{n,120}] (* _Harvey P. Dale_, Sep 23 2020 *)
%o A296077 (PARI) A296077(n) = isprime(1+lcm(znstar(n)[2]));
%Y A296077 Characteristic function for A263028.
%Y A296077 Cf. A002322, A010051, A263027, A263029 (positions of zeros), A296076, A296079.
%K A296077 nonn
%O A296077 1,1
%A A296077 _Antti Karttunen_, Dec 05 2017