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!)
A175825 Maximum signed integer that can be stored in n bytes. 1
127, 32767, 8388607, 2147483647, 549755813887, 140737488355327, 36028797018963967, 9223372036854775807, 2361183241434822606847, 604462909807314587353087, 154742504910672534362390527, 39614081257132168796771975167, 10141204801825835211973625643007 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
Wikipedia, Byte
FORMULA
a(n) = 2^(8*n - 1) - 1.
From Colin Barker, May 12 2016: (Start)
a(n) = 257*a(n-1)-256*a(n-2) for n>2.
G.f.: x*(127+128*x) / ((1-x)*(1-256*x)).
(End)
EXAMPLE
a(1) = 2^7 - 1 = 128 - 1 = 127.
a(2) = 2^15 - 1 = 32768 - 1 = 32767.
a(3) = 2^23 - 1 = 8388608 - 1 = 8388607.
MATHEMATICA
Table[2^(8n - 1) - 1, {n, 1, 11}]
PROG
(Python)
print([2**(8 * i - 1) - 1 for i in range(1, 12)])
(PARI) Vec(x*(127+128*x)/((1-x)*(1-256*x)) + O(x^50)) \\ Colin Barker, May 12 2016
CROSSREFS
Sequence in context: A289474 A069434 A175633 * A217914 A203798 A351134
KEYWORD
easy,less,nonn
AUTHOR
Grant Garcia, Sep 14 2010
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 April 24 00:30 EDT 2024. Contains 371917 sequences. (Running on oeis4.)