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.

A085273 Difference between n-th composite number and its largest prime divisor.

This page as a plain text file.
%I A085273 #10 Jun 20 2019 17:40:08
%S A085273 2,3,6,6,5,9,7,10,14,15,15,14,11,21,20,13,24,21,25,30,22,17,28,33,19,
%T A085273 26,35,35,33,40,23,45,42,45,34,39,51,44,49,38,29,55,31,56,62,52,55,51,
%U A085273 46,63,69,37,70,57,66,65,75,78,41,77,68,43,58,77,85,78,69,62,47,76,93,91
%N A085273 Difference between n-th composite number and its largest prime divisor.
%H A085273 Ivan Neretin, <a href="/A085273/b085273.txt">Table of n, a(n) for n = 1..10000</a>
%e A085273 For 91=7*13 we have 91-13 = 78.
%e A085273 For 92=2*2*23 we have 92-23 = 69.
%t A085273 DeleteCases[Table[n - FactorInteger[n][[-1, 1]], {n, 100}], 0 _] (* _Ivan Neretin_, Jun 20 2019 *)
%o A085273 (PARI) cminusp2(n) = { for(x=2,n, forstep(p=x,2,-1, if(isprime(p) & x%p==0 & isprime(x)==0,print1(x-p,","); break); ) ) }
%Y A085273 Cf. A002808, A085271.
%K A085273 easy,nonn
%O A085273 1,1
%A A085273 _Cino Hilliard_, Aug 12 2003
%E A085273 Offset corrected by _Ivan Neretin_, Jun 20 2019