login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A217562 Even numbers not divisible by 5. 3

%I #18 Sep 08 2022 08:46:04

%S 2,4,6,8,12,14,16,18,22,24,26,28,32,34,36,38,42,44,46,48,52,54,56,58,

%T 62,64,66,68,72,74,76,78,82,84,86,88,92,94,96,98,102,104,106,108,112,

%U 114,116,118,122,124,126,128,132

%N Even numbers not divisible by 5.

%C Numbers ending with 2,4,6,8 in base 10.

%C No term is divisible by 10 therefore a subsequence of A067251 (Numbers with no trailing zeros in decimal representation).

%C Union of this sequence with A005408 (The odd numbers) gives A067251.

%C Union of this sequence with A045572 (Numbers that are odd but not divisible by 5) gives A047201.

%C The even numbers divisible by 5 are A008592 (Multiples of 10).

%H Jeremy Gardiner, <a href="/A217562/b217562.txt">Table of n, a(n) for n = 1..4000</a>

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

%F a(n) = 2*A047201(n).

%F G.f.: 2*x*(1+x+x^2+x^3+x^4) / ( (1+x)*(1+x^2)*(x-1)^2 ). - _R. J. Mathar_, Oct 06 2012

%t CoefficientList[Series[2*(1 + x + x^2 + x^3 + x^4)/((1 + x)*(1 + x^2)*(x - 1)^2), {x, 0, 100}], x] (* _Vincenzo Librandi_, Dec 28 2012 *)

%o (BASIC)

%o for n=1 to 199

%o if n mod 5 <> 0 and n mod 2 <> 1 then print str$(n)+", ";

%o next n

%o print

%o (PARI) A217562(n)=(n-1)*5\2+2 \\ - _M. F. Hasler_, Oct 07 2012

%o (Magma) I:=[2, 4, 6, 8, 12]; [n le 5 select I[n] else Self(n-1) + Self(n-4) - Self(n-5): n in [1..60]]; // _Vincenzo Librandi_, Dec 28 2012

%Y Cf. A005408, A005843, A045572, A047201, A067251.

%K nonn,easy

%O 1,1

%A _Jeremy Gardiner_, Oct 06 2012

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 24 20:08 EDT 2024. Contains 371963 sequences. (Running on oeis4.)