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.

A067563 Product of n-th prime number and n-th composite number.

This page as a plain text file.
%I A067563 #18 May 11 2023 23:50:58
%S A067563 8,18,40,63,110,156,238,285,368,522,620,777,902,1032,1175,1378,1593,
%T A067563 1708,2010,2272,2409,2686,2905,3204,3686,3939,4120,4494,4796,5085,
%U A067563 5842,6288,6713,6950,7599,7852,8478,8965,9352,9861,10382,10860,11842,12159
%N A067563 Product of n-th prime number and n-th composite number.
%H A067563 Reinhard Zumkeller, <a href="/A067563/b067563.txt">Table of n, a(n) for n = 1..10000</a>
%F A067563 a(n) = prime(n) * composite(n).
%e A067563 E.g. a(4)=63 because the fourth prime is 7 and the fourth composite is 9.
%t A067563 Module[{nn=50,prs,comps,len},prs=Prime[Range[nn]];comps=Complement[ Range[ 4,3nn],prs];len=Min[nn,Length[comps]];Times@@@Thread[ {Take[ prs,len], Take[comps,len]}]](* _Harvey P. Dale_, Sep 02 2015 *)
%o A067563 (Haskell)
%o A067563 a067563 n = a000040 n * a002808 n  -- _Reinhard Zumkeller_, Apr 30 2014
%o A067563 (Python)
%o A067563 from sympy import prime, composite
%o A067563 def A067563(n):
%o A067563     return prime(n)*composite(n) # _Chai Wah Wu_, Dec 27 2018
%Y A067563 Cf. A000040, A002808, A064799.
%Y A067563 Cf. A127118, A038529.
%K A067563 easy,nonn
%O A067563 1,1
%A A067563 _Rick L. Shepherd_, Jan 29 2002