OFFSET
1,2
COMMENTS
FORMULA
a(n) = A053828(7^k+n-1) where k >= ceiling(log_7(n/6)). [R. J. Mathar, Dec 09 2010]
Conjecture: Fixed point of the morphism 1->{1,2,3,...b}, 2->{2,3,4...,b+1}, j->{j,j+1,...,j+b-1} for b=7. [Joerg Arndt, Dec 08 2010]
MAPLE
A053828 := proc(n) add(d, d=convert(n, base, 7)) ; end proc:
A173527 := proc(n) local b; b := 7 ; if n < b then n; else k := n/(b-1); k := ceil(log(k)/log(b)) ; A053828(b^k+n-1) ; end if; end proc:
seq(A173527(n), n=1..100) ; # R. J. Mathar, Dec 09 2010
MATHEMATICA
Table[Total[IntegerDigits[n-1, 7]]+1, {n, 110}] (* Harvey P. Dale, Apr 01 2018 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Omar E. Pol, Feb 20 2010
EXTENSIONS
More terms from Vincenzo Librandi, Feb 21 2010
STATUS
approved