A181521 Representation of n = sum_k b_k*(k!!) in the double-factorial base by some b_k-fold concatenation of the indices k.
1, 2, 3, 13, 23, 33, 133, 4, 14, 24, 34, 134, 234, 334, 5, 15, 25, 35, 135, 235, 335, 1335, 45, 145, 245, 345, 1345, 2345, 3345, 55, 155, 255, 355, 1355, 2355, 3355, 13355, 455, 1455, 2455, 3455, 13455, 23455, 33455, 555, 1555, 2555, 6, 16, 26, 36, 136, 236, 336
Offset: 1
Examples
a(39) = 1455 because 1!!+4!!+5!!+5!! = 1+8+15+15 = 39
Crossrefs
Cf. A111095
Programs
-
Maple
dblfactfloor := proc(n) local j ; for j from 1 do if doublefactorial(j) > n then return j-1 ; end if; end do: end proc: dblfbase := proc(n) local nshf,L,f; nshf := n ; L := [] ; while nshf > 0 do f := dblfactfloor(nshf) ; L := [f,op(L)] ; nshf := nshf-doublefactorial(f) ; end do: L ; end proc: read("transforms") ; A181521 := proc(n) digcatL(dblfbase(n)) ; end proc: seq(A181521(n),n=1..70) ; # R. J. Mathar, Dec 06 2010
Comments