The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A055126 Base-16 complement of n (write n in base 16, then replace each digit with its base-16 negative). 14
0, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 240, 255, 254, 253, 252, 251, 250, 249, 248, 247, 246, 245, 244, 243, 242, 241, 224, 239, 238, 237, 236, 235, 234, 233, 232, 231, 230, 229, 228, 227, 226, 225, 208, 223, 222, 221, 220, 219, 218, 217, 216, 215 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
Reinhard Zumkeller, Table of n, a(n) for n = 0..4095 (4095 = 16^3 - 1)
PROG
(Haskell)
a055126 0 = 0
a055126 n = if d == 0 then 16 * a055126 n' else 16 * a055126 n' + 16 - d
where (n', d) = divMod n 16
-- Reinhard Zumkeller, Mar 12 2014
CROSSREFS
Column k=16 of A248813.
Sequence in context: A022971 A023457 A004456 * A182336 A273369 A272685
KEYWORD
base,easy,nonn,look
AUTHOR
Henry Bottomley, Apr 19 2000
STATUS
approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 7 00:43 EDT 2024. Contains 373140 sequences. (Running on oeis4.)