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.
%I A309239 #32 Aug 19 2019 11:08:39 %S A309239 2,4,6,8,10,12,14,16,18,22,24,26,30,32,34,36,38,40,46,48,54,56,58,60, %T A309239 62,64,72,74,82,84,86,90,94,96,98,100,106,108,118,120,122,126,128,132, %U A309239 134,142,144,146,150,158,160,162,166,168,178,180,192,194,198,202,206,210 %N A309239 Numbers m > 1 having the property that for any prime divisor p of m, k=p-1 is the smallest positive integer such that p-k|m-k. %C A309239 All terms in this sequence are even. Proof: If m is odd and p a prime factor, then p is odd. Put t=p-2, then m-t is even, and since p-(p-2)=2, p-t|m-t. Therefore k <= p-2 < p-1, and p-1 is not the smallest number satisfying the definition of k. Therefore there are no odd numbers in this sequence. %H A309239 Jinyuan Wang, <a href="/A309239/b309239.txt">Table of n, a(n) for n = 1..10000</a> %F A309239 A001414(m) - A001222(m) = A059975(m) = A309155(m), for m in this sequence. %e A309239 For m=1 the predicate would not be well defined. %e A309239 For m=2, k=1=2-1, so 2 is a term. %e A309239 For m=10=2*5: p=2->k=1=2-1; p=5->k=4=5-1 therefore 10 is a term. %p A309239 filter:= proc(n) local p,k; %p A309239 for p in numtheory:-factorset(n) minus {2} do %p A309239 for k from 2 to p-3 by 2 do %p A309239 if (n-k) mod (p-k) = 0 then return false fi %p A309239 od od; %p A309239 true %p A309239 end proc: %p A309239 select(filter, [seq(i,i=2..200,2)]); # _Robert Israel_, Jul 17 2019 %t A309239 fQ[n_, p_] := Module[{k = 1}, While[!Divisible[n - k, p - k], k++]; k == p - 1]; aQ[n_] := And @@ (fQ[n, #] & /@ FactorInteger[n][[;; , 1]]); Select[Range[2, 200], aQ] (* _Amiram Eldar_, Jul 17 2019 *) %o A309239 (PARI) findleast(m, p) = {for (k=1, p-1, if (!((m-k) % (p-k)), return(k)););} %o A309239 isok(m) = {if (m == 1, return(0)); my (f = factor(m)); for (i=1, #f~, my(k = findleast(m, f[i,1])); if (k != f[i,1] - 1, return (0));); return (1);} \\ _Michel Marcus_, Aug 18 2019 %Y A309239 Cf. A001414, A001222, A059975, A309155. %K A309239 nonn %O A309239 1,1 %A A309239 _David James Sycamore_, Jul 17 2019