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.

A221490 Number of primes of the form k*n + k - n, 1 <= k <= n.

This page as a plain text file.
%I A221490 #19 Jan 26 2022 14:20:43
%S A221490 0,0,1,1,3,1,2,2,5,3,6,3,5,4,4,3,9,2,6,5,8,4,9,4,9,7,10,4,17,3,10,9,
%T A221490 11,9,15,4,9,10,13,5,20,7,11,10,16,8,19,6,18,12,17,5,23,9,18,9,15,8,
%U A221490 26,7,15,12,16,13,29,8,18,13,26,9,25,10,19,18,16
%N A221490 Number of primes of the form k*n + k - n, 1 <= k <= n.
%C A221490 Number of primes in n-th row of the triangle in A209297.
%C A221490 Number of primes along the main diagonal of an n X n square array whose elements are the numbers from 1..n^2, listed in increasing order by rows (see square arrays in example). - _Wesley Ivan Hurt_, May 15 2021
%H A221490 Reinhard Zumkeller, <a href="/A221490/b221490.txt">Table of n, a(n) for n = 1..1000</a>
%F A221490 a(n) = Sum_{k=1..n} A010051(A209297(n,k)).
%F A221490 a(n) = Sum_{k=1..n} c(n*(k-1)+k), where c is the prime characteristic. - _Wesley Ivan Hurt_, May 15 2021
%e A221490 Row 10 of A209297 = [1,12,23,34,45,56,67,78,89,100] containing three primes: [23,67,89], therefore a(10) = 3;
%e A221490 row 11 of A209297 = [1,13,25,37,49,61,73,85,97,109,121] containing six primes: [13,37,61,73,97,109], therefore a(11) = 6.
%e A221490 From _Wesley Ivan Hurt_, May 15 2021: (Start)
%e A221490                                                       [1   2  3  4  5]
%e A221490                                       [1   2  3  4]   [6   7  8  9 10]
%e A221490                             [1 2 3]   [5   6  7  8]   [11 12 13 14 15]
%e A221490                    [1 2]    [4 5 6]   [9  10 11 12]   [16 17 18 19 20]
%e A221490            [1]     [3 4]    [7 8 9]   [13 14 15 16]   [21 22 23 24 25]
%e A221490 ------------------------------------------------------------------------
%e A221490   n         1        2         3            4                 5
%e A221490 ------------------------------------------------------------------------
%e A221490   a(n)      0        0         1            1                 3
%e A221490 ------------------------------------------------------------------------
%e A221490 (End)
%t A221490 Count[#,_?PrimeQ]&/@Table[k*n+k-n,{n,75},{k,n}] (* _Harvey P. Dale_, Apr 03 2015 *)
%o A221490 (Haskell)
%o A221490 a221490 n = sum [a010051 (k*n + k - n) | k <- [1..n]]
%o A221490 (PARI) a(n) = sum(k=1, n, isprime(k*n + k - n)); \\ _Michel Marcus_, Jan 26 2022
%Y A221490 Cf. A010051, A209297, A221491, A344316, A344349.
%K A221490 nonn
%O A221490 1,5
%A A221490 _Reinhard Zumkeller_, Jan 19 2013