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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A276146 a(n) = A034968(A225901(n)). 2
0, 1, 2, 3, 1, 2, 3, 4, 5, 6, 4, 5, 2, 3, 4, 5, 3, 4, 1, 2, 3, 4, 2, 3, 4, 5, 6, 7, 5, 6, 7, 8, 9, 10, 8, 9, 6, 7, 8, 9, 7, 8, 5, 6, 7, 8, 6, 7, 3, 4, 5, 6, 4, 5, 6, 7, 8, 9, 7, 8, 5, 6, 7, 8, 6, 7, 4, 5, 6, 7, 5, 6, 2, 3, 4, 5, 3, 4, 5, 6, 7, 8, 6, 7, 4, 5, 6, 7, 5, 6, 3, 4, 5, 6, 4, 5, 1, 2, 3, 4, 2, 3, 4, 5, 6, 7, 5, 6, 3, 4, 5, 6, 4, 5, 2, 3, 4, 5, 3, 4, 5 (list; graph; refs; listen; history; text; internal format)
OFFSET

0,3

LINKS

Antti Karttunen, Table of n, a(n) for n = 0..40320

Index entries for sequences related to factorial base representation

FORMULA

a(n) = A034968(A225901(n)).

MATHEMATICA

b = MixedRadix[Reverse@ Range[2, 12]]; h[n_] := Module[{s = 0, i = 2, k = n}, While[k > 0, k = Floor[n/i!]; s = s + (i - 1) k; i++]; n - s]; Table[h@ FromDigits[Map[Boole[# > 0] &, #] (Reverse@ Range[2, Length@ # + 1] - #), b] &@ IntegerDigits[n, b], {n, 0, 120}] (* Version 10.2, or *)

f[n_] := Block[{a = {{0, n}}}, Do[AppendTo[a, {First@ #, Last@ #} &@ QuotientRemainder[a[[-1, -1]], Times @@ Range[# - i]]], {i, 0, #}] &@ NestWhile[# + 1 &, 0, Times @@ Range[# + 1] <= n &]; Most@ Rest[a][[All, 1]] /. {} -> {0}]; g[w_List] := Total[Times @@@ Transpose@{Map[Times @@ # &, Range@ Range[0, Length@ w]], Reverse@ Append[w, 0]}]; h[n_] := Module[{s = 0, i = 2, k = n}, While[k > 0, k = Floor[n/i!]; s = s + (i - 1) k; i++]; n - s]; Table[h@ g[Map[Boole[# > 0] &, #] (Reverse@ Range[2, Length@ # + 1] - #)] &@ f@ n, {n, 0, 120}] (* Michael De Vlieger, Aug 29 2016, function h after Jean-Fran├žois Alcover at A034968 *)

PROG

(Scheme) (define (A276146 n) (A034968 (A225901 n)))

CROSSREFS

Cf. A034968, A225901.

Sequence in context: A071797 A025481 A124171 * A210530 A076645 A011448

Adjacent sequences:  A276143 A276144 A276145 * A276147 A276148 A276149

KEYWORD

nonn,base

AUTHOR

Antti Karttunen, Aug 29 2016

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 May 19 22:32 EDT 2019. Contains 323411 sequences. (Running on oeis4.)