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!)
A190805 Increasing sequence generated by these rules: a(1)=1, and if x is in a then 2x-1 and 3x+1 are in a. 3

%I #12 Jul 13 2013 12:04:09

%S 1,4,7,13,22,25,40,43,49,67,76,79,85,97,121,130,133,148,151,157,169,

%T 193,202,229,238,241,256,259,265,292,295,301,313,337,364,385,391,400,

%U 403,445,454,457,472,475,481,508,511,517,529,580,583,589,601,607,625,673,688,715,724,727

%N Increasing sequence generated by these rules: a(1)=1, and if x is in a then 2x-1 and 3x+1 are in a.

%C See A190803.

%H Reinhard Zumkeller, <a href="/A190805/b190805.txt">Table of n, a(n) for n = 1..10000</a>

%t h = 2; i = -1; j = 3; k = 1; f = 1; g = 10 ;

%t a = Union[Flatten[NestList[{h # + i, j # + k} &, f, g]]] (* A190805 *)

%t b = (a + 1)/2; c = (a - 1)/3; r = Range[1, 500];

%t d = Intersection[b, r] (* A190845 *)

%t e = Intersection[c, r] (* A190808 conjectured *)

%o (Haskell)

%o import Data.Set (singleton, deleteFindMin, insert)

%o a190805 n = a190805_list !! (n-1)

%o a190805_list = 1 : f (singleton 4)

%o where f s = m : (f $ insert (2*m-1) $ insert (3*m+1) s')

%o where (m, s') = deleteFindMin s

%o -- _Reinhard Zumkeller_, Jun 01 2011

%Y Cf. A190803, A190845.

%K nonn

%O 1,2

%A _Clark Kimberling_, May 20 2011

%E a(56)=673 inserted by _Reinhard Zumkeller_, Jun 01 2011

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 18:17 EDT 2024. Contains 371962 sequences. (Running on oeis4.)