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!)
A031883 First differences of lucky numbers. 16

%I #14 Jul 13 2015 22:38:54

%S 2,4,2,4,2,6,4,6,2,4,6,6,2,12,4,2,4,2,4,8,6,6,6,6,4,12,2,4,2,6,10,8,4,

%T 6,2,18,4,2,6,4,6,8,4,8,4,2,4,18,2,6,6,10,2,4,8,6,4,12,2,6,4,8,10,8,4,

%U 6,18,6,2,6,10,6,6,6,2,4,18,12,12,2,6,4,2,6,16,6,2,10,6,2,4,12,6,18,2,4,8

%N First differences of lucky numbers.

%C a(n) = A254967(n,n-1). - _Reinhard Zumkeller_, Feb 11 2015

%H T. D. Noe, <a href="/A031883/b031883.txt">Table of n, a(n) for n=1..10000</a>

%t lst = Range[1, 600, 2]; i = 2; While[ i <= (len = Length@lst) && (k = lst[[i]]) <= len, lst = Drop[lst, {k, len, k}]; i++ ]; Rest@lst - Most@lst (* _Robert G. Wilson v_, May 12 2006 *)

%o (Haskell)

%o a031883 n = a031883_list !! (n-1)

%o a031883_list = zipWith (-) (tail a000959_list) a000959_list

%o -- _Reinhard Zumkeller_, Feb 11 2015

%Y Cf. A000959.

%Y Cf. A254967.

%K nonn,easy

%O 1,1

%A _Patrick De Geest_

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 25 01:06 EDT 2024. Contains 371964 sequences. (Running on oeis4.)