login
This site is supported by donations to The OEIS Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; constant; graph; refs; listen; history; text; internal format)
OFFSET

0,3

COMMENTS

Often used for converting 24-bit colors from 0..255 to [0, 1). - Charles R Greathouse IV, Mar 25 2014

LINKS

Table of n, a(n) for n=0..98.

Mathematics.StackExchange.com, What does the constant 0.0039215689 represent?

FORMULA

a(n)=(1/128)*{13*(n mod 16)-67*[(n+1) mod 16]+45*[(n+2) mod 16]-3*[(n+3) mod 16]+29*[(n+4) mod 16]-35*[(n+5) mod 16]+37*[(n+6) mod 16]+21*[(n+7) mod 16]-11*[(n+8) mod 16]-3*[(n+9) mod 16]-27*[(n+10) mod 16]+13*[(n+11) mod 16]+61*[(n+12) mod 16]-43*[(n+13) mod 16]-19*[(n+14) mod 16]+69*[(n+15) mod 16]}-8*[C(2*n,n) mod 2], with n>=0 [From Paolo P. Lava, Oct 27 2009]

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

Adjacent sequences:  A021256 A021257 A021258 * A021260 A021261 A021262

KEYWORD

nonn,cons,easy

AUTHOR

N. J. A. Sloane.

STATUS

approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recent
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified August 22 05:35 EDT 2019. Contains 326172 sequences. (Running on oeis4.)