login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A337844 a(1) = 1; a(n) = a(n-1) concatenated with the smallest number k>0 such that tau(a(n)) > tau(a(n-1)). 0
1, 11, 111, 1112, 11124, 1112410, 111241020, 11124102080, 11124102080130, 11124102080130102, 11124102080130102180, 11124102080130102180480, 11124102080130102180480160, 11124102080130102180480160116 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,2
COMMENTS
This sequence is infinite because k can be of the form m*10^n for some m and n > 0.
LINKS
FORMULA
a(1) = 1; a(n) = a(n-1) concatenated with the smallest number k>0, such that A000005(a(n)) > A000005(a(n-1)).
EXAMPLE
a(4) = 1112, because a(3) = 111 and tau(111) = 4, so a(n) must be equal to 111//k ("//" denotes concatenation) and tau(a(4)) > 4, therefore the smallest k that satisfies this condition is 2.
MATHEMATICA
f[1] = {1, 1}; f[n_] := f[n] = Module[{k = 1, t = f[n - 1][[1]], d = IntegerDigits[f[n - 1][[2]]]}, While[(t1 = DivisorSigma[0, (n1 = FromDigits @ Join[d, IntegerDigits[k]])]) <= t, k++]; {t1, n1}]; a[n_] := f[n][[2]]; Array[a, 14] (* Amiram Eldar, Sep 26 2020 *)
PROG
(PARI) a(n) = if(n == 1, l = m = vector(100); return(l[1] = 1), for(k = 1, oo, j = eval(concat(Str(l[n-1]), k)); if((m[n] = numdiv(j)) > m[n-1], return(l[n] = j))))
for(k=1, 10, print1(a(k), ", "));
CROSSREFS
Cf. A000005.
Sequence in context: A346789 A134732 A166747 * A015456 A343355 A240367
KEYWORD
base,nonn,less
AUTHOR
Eder Vanzei, Sep 25 2020
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 16:21 EDT 2024. Contains 371794 sequences. (Running on oeis4.)