login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A133752
a(n) = 256^n.
3
1, 256, 65536, 16777216, 4294967296, 1099511627776, 281474976710656, 72057594037927936, 18446744073709551616, 4722366482869645213696, 1208925819614629174706176, 309485009821345068724781056
OFFSET
0,2
COMMENTS
Number of different possible values that a file of n bytes can have; each byte has 8 bits and each bit can be 0 or 1.
The sequence shows how many different files can exist even with a very small amount of data (just a few bytes). With just 5 bytes of data, there are 1099511627776 different possible files.
Partial sums are in A218723. - M. F. Hasler, Nov 05 2012
FORMULA
From Elmo R. Oliveira, Aug 11 2024: (Start)
G.f.: 1/(1-256*x).
E.g.f.: exp(256*x).
a(n) = 256*a(n-1), n > 0. (End)
EXAMPLE
a(1) = 256^1 = 256 --> there are 256 possible 1-byte files;
a(2) = 256^2 = 65536 --> there are 65536 possible 2-byte files;
a(3) = 256^3 = 16777216 --> there are 16777216 possible 3-byte files;
a(4) = 256^4 = 4294967296 --> there are 4294967296 possible 4-byte files;
a(5) = 256^5 = 1099511627776 --> there are 1099511627776 possible 5-byte files.
MATHEMATICA
lst={}; Do[AppendTo[lst, 256^n], {n, 0, 4!}]; lst (* Vladimir Joseph Stephan Orlovsky, Mar 02 2009 *)
256^Range[0, 20] (* Harvey P. Dale, Aug 21 2014 *)
PROG
(Python)
def A133752(n): return 1<<(n<<3) # Chai Wah Wu, Nov 10 2022
CROSSREFS
Subsequence of A000079.
Cf. A218723.
Sequence in context: A189110 A223803 A223581 * A144322 A223266 A222101
KEYWORD
easy,nonn
AUTHOR
Marcel Hetkowski Fabeny (marcelfabeny(AT)yahoo.com.br), Jan 01 2008
EXTENSIONS
Edited by Jon E. Schoenfield, Jan 24 2015
STATUS
approved