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!)
A112714 Numbers of the form k*2^m-1 with k<2^m and k odd. 6

%I #17 Oct 31 2022 11:43:16

%S 1,3,7,11,15,23,31,39,47,55,63,79,95,111,127,143,159,175,191,207,223,

%T 239,255,287,319,351,383,415,447,479,511,543,575,607,639,671,703,735,

%U 767,799,831,863,895,927,959,991,1023,1087,1151,1215,1279,1343,1407

%N Numbers of the form k*2^m-1 with k<2^m and k odd.

%H Robert Israel, <a href="/A112714/b112714.txt">Table of n, a(n) for n = 1..10000</a>

%H Hsien-Kuei Hwang, Svante Janson, and Tsung-Hsi Tsai, <a href="https://arxiv.org/abs/2210.10968">Identities and periodic oscillations of divide-and-conquer recurrences splitting at half</a>, arXiv:2210.10968 [cs.DS], 2022, p. 38.

%H Eric Weisstein's World of Mathematics, <a href="http://mathworld.wolfram.com/ProthNumber.html">Proth Numbers</a>

%e a(4)=7 because 7 = 1*2^3 - 1, with 1 < 2^3, and it is the fourth number of this form.

%p N:= 2000: # to get all terms <= N

%p sort(convert({seq(seq(k*2^m-1,k=1..min((N+1)/2^m,2^m-1),2),m=1..ilog2(N+1))},list)); # _Robert Israel_, May 23 2017

%t Take[Sort@Flatten@Table[k*2^m - 1, {m, 0, 10}, {k, 1, 2^m - 1, 2}], 53] (* _Robert G. Wilson v_, Jan 02 2006 *)

%o (PARI) for(n=2,8,for(k=2^(n-2)+1,2^n,print1(k*2^n-1","))) \\ Note that the first two terms (1,3) are not computed

%Y Cf. A080075.

%K easy,nonn

%O 1,2

%A Jose Brox (tautocrona(AT)terra.es), Dec 31 2005

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 19 15:34 EDT 2024. Contains 371794 sequences. (Running on oeis4.)