OFFSET
0,7
COMMENTS
LINKS
FORMULA
Other identities. For all n >= 0:
a(A276089(n)) = n.
EXAMPLE
For n = 311 ("22321" in factorial base representation) we pick the digits at odd positions 1, 3 and 5, thus we get a(311) = 2*3! + 3*2! + 1*1! = 19.
For n=373 ("30201"), we pick the digits from those same positions and construct a(373) = 3*3! + 2*2! + 1*1! = 23.
PROG
(MIT/GNU Scheme)
;; Standalone program:
(define (A276090 n) (let loop ((n n) (s 0) (f 1) (i 2) (j 2)) (if (zero? n) s (let ((d (modulo n j))) (loop (floor->exact (/ (/ (- n d) j) (+ 1 j))) (+ s (* f d)) (* i f) (+ 1 i) (+ 2 j))))))
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Aug 19 2016
STATUS
approved