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.

A370857 Let L_1 = (1) and L_2 = (1, 2); for any n > 2, L_n is obtained by inserting one n between each pair of consecutive terms of L_{n-1} coprime to n; a(n) gives the number of n's in L_n.

This page as a plain text file.
%I A370857 #6 Mar 04 2024 08:47:48
%S A370857 1,1,1,1,3,1,7,9,19,13,55,21,131,157,303,317,1039,393,2471,2505,5643,
%T A370857 6145,19235,7413,40235,51905,110435,110683,359141,45877,764159,
%U A370857 1077437,2253143,2251065,6699111,2200709,16009783,20505321,43172899,29699143,125396929
%N A370857 Let L_1 = (1) and L_2 = (1, 2); for any n > 2, L_n is obtained by inserting one n between each pair of consecutive terms of L_{n-1} coprime to n; a(n) gives the number of n's in L_n.
%H A370857 Rémy Sigrist, <a href="/A370857/a370857.gp.txt">PARI program</a>
%F A370857 a(p) = (Sum_{k = 1, p-1} a(k)) - 1 for any odd prime number p.
%e A370857 The first terms, alongside the corresponding lists, are:
%e A370857   n  a(n)  L_n
%e A370857   -  ----  ---------------------------------------------
%e A370857   1     1  (1                                          )
%e A370857   2     1  (1,                                        2)
%e A370857   3     1  (1,                            3,          2)
%e A370857   4     1  (1,                4,          3,          2)
%e A370857   5     3  (1,          5,    4,    5,    3,    5,    2)
%e A370857   6     1  (1,    6,    5,    4,    5,    3,    5,    2)
%e A370857   7     7  (1, 7, 6, 7, 5, 7, 4, 7, 5, 7, 3, 7, 5, 7, 2)
%o A370857 (PARI) See Links section.
%Y A370857 Cf. A049456, A370858 (partials sums).
%K A370857 nonn
%O A370857 1,5
%A A370857 _Rémy Sigrist_, Mar 03 2024