login
A021259
Decimal expansion of 1/255.
0
0, 0, 3, 9, 2, 1, 5, 6, 8, 6, 2, 7, 4, 5, 0, 9, 8, 0, 3, 9, 2, 1, 5, 6, 8, 6, 2, 7, 4, 5, 0, 9, 8, 0, 3, 9, 2, 1, 5, 6, 8, 6, 2, 7, 4, 5, 0, 9, 8, 0, 3, 9, 2, 1, 5, 6, 8, 6, 2, 7, 4, 5, 0, 9, 8, 0, 3, 9, 2, 1, 5, 6, 8, 6, 2, 7, 4, 5, 0, 9, 8, 0, 3, 9, 2, 1, 5, 6, 8, 6, 2, 7, 4, 5, 0, 9, 8, 0, 3
OFFSET
0,3
COMMENTS
Often used for converting 24-bit colors from 0..255 to [0, 1). - Charles R Greathouse IV, Mar 25 2014
MATHEMATICA
Join[{0, 0}, RealDigits[1/255, 10, 120][[1]]] (* or *) PadRight[{0}, 120, {8, 0, 3, 9, 2, 1, 5, 6, 8, 6, 2, 7, 4, 5, 0, 9}] (* Harvey P. Dale, Jul 02 2017 *)
PROG
(PARI) 1/255. \\ Charles R Greathouse IV, Mar 25 2014
CROSSREFS
Sequence in context: A016048 A256501 A229099 * A194807 A114875 A275371
KEYWORD
nonn,cons,easy
STATUS
approved