The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A162214 a(n) = the largest positive multiple of n with exactly n digits when written in binary. 3
1, 2, 6, 12, 30, 60, 126, 248, 504, 1020, 2046, 4092, 8190, 16380, 32760, 65520, 131070, 262134, 524286, 1048560, 2097144, 4194300, 8388606, 16777200, 33554425, 67108860, 134217702, 268435440, 536870910, 1073741820, 2147483646, 4294967264, 8589934584 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
LINKS
FORMULA
a(n) = n * floor((2^n-1)/n). - Alois P. Heinz, Jul 11 2009
MAPLE
a:= n-> n*floor((2^n-1)/n): seq(a(n), n=1..40); # Alois P. Heinz, Jul 11 2009
MATHEMATICA
Array[# Floor[(2^# - 1)/#] &, 31] (* Michael De Vlieger, Nov 04 2017 *)
CROSSREFS
Cf. A162213.
Sequence in context: A058215 A330542 A166456 * A309728 A100071 A331552
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Jun 28 2009
EXTENSIONS
More terms from Alois P. Heinz, Jul 11 2009
STATUS
approved

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 May 23 04:41 EDT 2024. Contains 372758 sequences. (Running on oeis4.)