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
LINKS
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
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