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.

A082094 A 2nd-order recursion: a(1)=a(2)=1; a(n) = prime(a(n-1)) + primepi(a(n-2)) = A000040(a(n-1)) + A000720(a(n-2)).

This page as a plain text file.
%I A082094 #20 Sep 08 2022 08:45:09
%S A082094 1,1,2,3,6,15,50,235,1498,12592,135431,1806803,29135476,555971158,
%T A082094 12336554787,313733168860,9034347750986,291579097035392,
%U A082094 10455240487002922,413371595329570610
%N A082094 A 2nd-order recursion: a(1)=a(2)=1; a(n) = prime(a(n-1)) + primepi(a(n-2)) = A000040(a(n-1)) + A000720(a(n-2)).
%t A082094 a[n_]:= a[n]= If[n<4, Fibonacci[n], Prime[a[n-1]] + PrimePi[a[n-2]]]; Table[a[n], {n,1,17}] (* modified by _G. C. Greubel_, Aug 31 2019 *)
%o A082094 (Magma) a:= func< n | n lt 4 select Fibonacci(n) else NthPrime(Self(n-1)) + #PrimesUpTo(Self(n-2)) >;
%o A082094 [a(n): n in [1..14]]; // _G. C. Greubel_, Aug 31 2019
%Y A082094 Cf. A069103, A082095.
%K A082094 nonn,more
%O A082094 1,3
%A A082094 _Labos Elemer_, Apr 11 2003
%E A082094 a(17) from _G. C. Greubel_, Aug 31 2019
%E A082094 a(18)-a(20) from _Chai Wah Wu_, Sep 18 2019