A294472 Squarefree numbers whose odd prime factors are all consecutive primes.
1, 2, 3, 5, 6, 7, 10, 11, 13, 14, 15, 17, 19, 22, 23, 26, 29, 30, 31, 34, 35, 37, 38, 41, 43, 46, 47, 53, 58, 59, 61, 62, 67, 70, 71, 73, 74, 77, 79, 82, 83, 86, 89, 94, 97, 101, 103, 105, 106, 107, 109, 113, 118, 122, 127, 131, 134, 137, 139, 142, 143, 146, 149, 151, 154, 157, 158, 163, 166
Offset: 1
Keywords
Examples
70 is in this sequence because 2*5*7 = 70 is a squarefree number with two consecutive odd prime factors, 5 and 7.
Programs
-
Maple
N:= 1000: # to get all terms <= N R:= 1,2: Oddprimes:= select(isprime, [seq(i,i=3..N,2)]): for i from 1 to nops(Oddprimes) do p:= 1: for k from i to nops(Oddprimes) do p:= p*Oddprimes[k]; if p > N then break fi; if 2*p <= N then R:= R, p, 2*p else R:= R,p fi od; od: R:= sort([R]); # Robert Israel, Nov 01 2017
-
Mathematica
Select[Range@ 166, And[Union@ #2 == {1}, Or[# == {1}, # == {}] &@ Union@ Differences@ PrimePi@ DeleteCases[#1, 2]] & @@ Transpose@ FactorInteger[#] &] (* Michael De Vlieger, Nov 01 2017 *)
Extensions
Definition corrected by Michel Marcus, Nov 01 2017
Comments