login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

Numbers not divisible by 2, 5 or 7.
4

%I #28 Nov 27 2023 00:17:33

%S 1,3,9,11,13,17,19,23,27,29,31,33,37,39,41,43,47,51,53,57,59,61,67,69,

%T 71,73,79,81,83,87,89,93,97,99,101,103,107,109,111,113,117,121,123,

%U 127,129,131,137,139,141,143,149,151,153,157,159,163,167,169,171,173,177,179,181,183

%N Numbers not divisible by 2, 5 or 7.

%C All primes, except 2, 5 and 7, are in this sequence. Any product of terms is also a term in the sequence. For example, a(2)a(4) = 3 * 11 = 33 = a(12). - _Alonso del Arte_, Jan 12 2014

%C In other words, numbers equivalent 1,3,9,...,69 modulo 70. This means the first differences of the sequence are 24-periodic. - _Ralf Stephan_, Jan 14 2014

%C Numbers coprime to 70. The asymptotic density of this sequence is 12/35. - _Amiram Eldar_, Oct 23 2020

%H Vincenzo Librandi, <a href="/A235583/b235583.txt">Table of n, a(n) for n = 1..1000</a>

%H <a href="/index/Rec#order_23">Index entries for linear recurrences with constant coefficients</a>, signature (0, 1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, 1, 0, -1).

%F G.f.: x*(x^22 +3*x^21 +8*x^20 +7*x^19 +x^18-2*x^17 -x^16 +5*x^15 +10*x^14 +7*x^13 -x^12 -6*x^11 -x^10 +7*x^9 +10*x^8 +5*x^7 -x^6 -2*x^5 +x^4 +7*x^3 +8*x^2 +3*x +1) / ((x+1) *(x^2+1) *(x^2+x+1) *(x^4-x^2+1) *(x^4+1) *(x^8-x^4+1) *(x-1)^2). - _Alois P. Heinz_, Jan 12 2014

%e 51 = 3 * 17, and gcd(51, 70) = 1, so it is in the sequence.

%e 53 is prime, so it is in the sequence.

%e 55 = 5 * 11, and gcd(55, 70) = 5, so it is not in the sequence.

%t Select[Range[210], GCD[#, 70] == 1 &] (* _Alonso del Arte_, Jan 12 2014 *)

%t Select[Range[300], Mod[#, 2]>0 &&Mod[#, 5]>0 &&Mod[#, 7]>0&] (* _Vincenzo Librandi_, Feb 08 2014 *)

%Y Cf. A007775, A008364 (subsequence).

%K nonn,easy

%O 1,2

%A _Oleg P. Kirillov_, Jan 12 2014