A133752 a(n) = 256^n.
1, 256, 65536, 16777216, 4294967296, 1099511627776, 281474976710656, 72057594037927936, 18446744073709551616, 4722366482869645213696, 1208925819614629174706176, 309485009821345068724781056
Offset: 0
Examples
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.
Links
- Index entries for linear recurrences with constant coefficients, signature (256).
Programs
-
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 *)
-
Python
def A133752(n): return 1<<(n<<3) # Chai Wah Wu, Nov 10 2022
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)
Extensions
Edited by Jon E. Schoenfield, Jan 24 2015
Comments