0,2

Reinhard Zumkeller, Table of n, a(n) for n = 0..4095 (4095 = 8^4 - 1)

Index entries for sequences that are permutations of the natural numbers

(Haskell)

a055118 0 = 0

a055118 n = if d == 0 then 8 * a055118 n' else 8 * a055118 n' + 8 - d

where (n', d) = divMod n 8

-- Reinhard Zumkeller, Mar 12 2014

Cf. A004488, A048647, A055115-A055126.

Column k=8 of A248813.

Sequence in context: A260933 A194755 A333884 * A132671 A074921 A182209

Adjacent sequences: A055115 A055116 A055117 * A055119 A055120 A055121

base,easy,nonn,look

Henry Bottomley, Apr 19 2000

approved