To exponential digit growth and beyond!Hereditary Base ChangeOutput the juggler sequenceExcludivisible numbersHead, Shoulders, Knees and Toes, Knees and ToesMix pi and e to make pie!Create a pointer sequenceOlympic Rings SequenceDecimal Digit TruncatingPatience, young “Padovan”Convert a number into “bracket” numerals

Does the "6 seconds per round" rule apply to speaking/roleplaying during combat situations?

How were concentration and extermination camp guards recruited?

Smooth switching between 12v batteries, with toggle switch

What is in `tex.print` or `tex.sprint`?

Accidentally renamed tar.gz file to a non tar.gz file, will my file be messed up

What are the words for people who cause trouble believing they know better?

Avoiding cliches when writing gods

Importance sampling estimation of power function

Why does the Schrödinger equation work so well for the Hydrogen atom despite the relativistic boundary at the nucleus?

Why don't B747s start takeoffs with full throttle?

Does the first version of Linux developed by Linus Torvalds have a GUI?

What can plausibly explain many of my very long and low-tech bridges?

How can drunken, homicidal elves successfully conduct a wild hunt?

Completing the square to find if quadratic form is positive definite.

How to pass a regex when finding a directory path in bash?

Why is quantum entanglement surprising?

Reading two lines in piano

How is it possible that Gollum speaks Westron?

What is the advantage of carrying a tripod and ND-filters when you could use image stacking instead?

What's the correct term describing the action of sending a brand-new ship out into its first seafaring trip?

PC video game involving floating islands doing aerial combat

Are there cubesats in GEO?

Implement Homestuck's Catenative Doomsday Dice Cascader

What happened to all the nuclear material being smuggled after the fall of the USSR?



To exponential digit growth and beyond!


Hereditary Base ChangeOutput the juggler sequenceExcludivisible numbersHead, Shoulders, Knees and Toes, Knees and ToesMix pi and e to make pie!Create a pointer sequenceOlympic Rings SequenceDecimal Digit TruncatingPatience, young “Padovan”Convert a number into “bracket” numerals













18












$begingroup$


Challenge



Given a base $1 < b < 10$ and an index $t ge 1$, output term $x_t$, defined as follows:



  • $x_1 = 11_10$


  • $x_i+1$ is obtained by converting $x_i$ to base $b$ and then reinterpreting its digits in base $10$

  • Output should be in base $10$

A walk through for base 5, term 5 would be:




  • $x_1 = 11_10$.


  • $11_10 = 21_5$ so $x_2 = 21_10$.


  • $21_10 = 41_5$ so $x_3 = 41_10$.


  • $41_10 = 131_5$ so $x_4 = 131_10$.


  • $131_10 = 1011_5$ so $x_5 = 1011_10$.

  • We output the string "1011" or the integer 1011.

Test Cases



Note: these are one indexed



base 2, term 5 --> 1100100111110011010011100010101000011000101001000100011011011010001111011100010000001000010011100011
base 9, term 70 --> 1202167480887
base 8, term 30 --> 4752456545
base 4, term 13 --> 2123103032103331200023103133211223233322200311320011300320320100312133201303003031113021311200322222332322220300332231220022313031200030333132302313012110123012123010113230200132021023101313232010013102221103203031121232122020233303303303211132313213012222331020133


Notes



  • Standard loopholes are not allowed

  • Any default I/O method is allowed

  • You may use different indexes (such as 0-indexed, 1-indexed, 2-indexed, etc) for $t$

  • You may output the first $t$ terms.

  • As this is code-golf, shortest code wins for that language









share|improve this question











$endgroup$







  • 1




    $begingroup$
    Do we have to support larger numbers or just numbers up to 2^31 - 1?
    $endgroup$
    – Embodiment of Ignorance
    May 19 at 23:39






  • 1




    $begingroup$
    @EmbodimentofIgnorance The maximum of your language (Remember the standard loophole, though!)
    $endgroup$
    – MilkyWay90
    May 19 at 23:43










  • $begingroup$
    Is there a challenge that includes bases > 10? (In that case you would repeatedly interpret 11 as if it was in base b and convert it back to base 10, etc.)
    $endgroup$
    – Neil
    May 21 at 11:11










  • $begingroup$
    @Neil I didn't include bases higher than 10 since (for example) 4a wouldn't be a valid number in base-10
    $endgroup$
    – MilkyWay90
    May 22 at 22:49










  • $begingroup$
    You wouldn't get 4a, since you'd be interpreting the base 10 digits as base b and converting to base 10 each time (i.e. the other way around from this question).
    $endgroup$
    – Neil
    May 22 at 22:59















18












$begingroup$


Challenge



Given a base $1 < b < 10$ and an index $t ge 1$, output term $x_t$, defined as follows:



  • $x_1 = 11_10$


  • $x_i+1$ is obtained by converting $x_i$ to base $b$ and then reinterpreting its digits in base $10$

  • Output should be in base $10$

A walk through for base 5, term 5 would be:




  • $x_1 = 11_10$.


  • $11_10 = 21_5$ so $x_2 = 21_10$.


  • $21_10 = 41_5$ so $x_3 = 41_10$.


  • $41_10 = 131_5$ so $x_4 = 131_10$.


  • $131_10 = 1011_5$ so $x_5 = 1011_10$.

  • We output the string "1011" or the integer 1011.

Test Cases



Note: these are one indexed



base 2, term 5 --> 1100100111110011010011100010101000011000101001000100011011011010001111011100010000001000010011100011
base 9, term 70 --> 1202167480887
base 8, term 30 --> 4752456545
base 4, term 13 --> 2123103032103331200023103133211223233322200311320011300320320100312133201303003031113021311200322222332322220300332231220022313031200030333132302313012110123012123010113230200132021023101313232010013102221103203031121232122020233303303303211132313213012222331020133


Notes



  • Standard loopholes are not allowed

  • Any default I/O method is allowed

  • You may use different indexes (such as 0-indexed, 1-indexed, 2-indexed, etc) for $t$

  • You may output the first $t$ terms.

  • As this is code-golf, shortest code wins for that language









share|improve this question











$endgroup$







  • 1




    $begingroup$
    Do we have to support larger numbers or just numbers up to 2^31 - 1?
    $endgroup$
    – Embodiment of Ignorance
    May 19 at 23:39






  • 1




    $begingroup$
    @EmbodimentofIgnorance The maximum of your language (Remember the standard loophole, though!)
    $endgroup$
    – MilkyWay90
    May 19 at 23:43










  • $begingroup$
    Is there a challenge that includes bases > 10? (In that case you would repeatedly interpret 11 as if it was in base b and convert it back to base 10, etc.)
    $endgroup$
    – Neil
    May 21 at 11:11










  • $begingroup$
    @Neil I didn't include bases higher than 10 since (for example) 4a wouldn't be a valid number in base-10
    $endgroup$
    – MilkyWay90
    May 22 at 22:49










  • $begingroup$
    You wouldn't get 4a, since you'd be interpreting the base 10 digits as base b and converting to base 10 each time (i.e. the other way around from this question).
    $endgroup$
    – Neil
    May 22 at 22:59













18












18








18


1



$begingroup$


Challenge



Given a base $1 < b < 10$ and an index $t ge 1$, output term $x_t$, defined as follows:



  • $x_1 = 11_10$


  • $x_i+1$ is obtained by converting $x_i$ to base $b$ and then reinterpreting its digits in base $10$

  • Output should be in base $10$

A walk through for base 5, term 5 would be:




  • $x_1 = 11_10$.


  • $11_10 = 21_5$ so $x_2 = 21_10$.


  • $21_10 = 41_5$ so $x_3 = 41_10$.


  • $41_10 = 131_5$ so $x_4 = 131_10$.


  • $131_10 = 1011_5$ so $x_5 = 1011_10$.

  • We output the string "1011" or the integer 1011.

Test Cases



Note: these are one indexed



base 2, term 5 --> 1100100111110011010011100010101000011000101001000100011011011010001111011100010000001000010011100011
base 9, term 70 --> 1202167480887
base 8, term 30 --> 4752456545
base 4, term 13 --> 2123103032103331200023103133211223233322200311320011300320320100312133201303003031113021311200322222332322220300332231220022313031200030333132302313012110123012123010113230200132021023101313232010013102221103203031121232122020233303303303211132313213012222331020133


Notes



  • Standard loopholes are not allowed

  • Any default I/O method is allowed

  • You may use different indexes (such as 0-indexed, 1-indexed, 2-indexed, etc) for $t$

  • You may output the first $t$ terms.

  • As this is code-golf, shortest code wins for that language









share|improve this question











$endgroup$




Challenge



Given a base $1 < b < 10$ and an index $t ge 1$, output term $x_t$, defined as follows:



  • $x_1 = 11_10$


  • $x_i+1$ is obtained by converting $x_i$ to base $b$ and then reinterpreting its digits in base $10$

  • Output should be in base $10$

A walk through for base 5, term 5 would be:




  • $x_1 = 11_10$.


  • $11_10 = 21_5$ so $x_2 = 21_10$.


  • $21_10 = 41_5$ so $x_3 = 41_10$.


  • $41_10 = 131_5$ so $x_4 = 131_10$.


  • $131_10 = 1011_5$ so $x_5 = 1011_10$.

  • We output the string "1011" or the integer 1011.

Test Cases



Note: these are one indexed



base 2, term 5 --> 1100100111110011010011100010101000011000101001000100011011011010001111011100010000001000010011100011
base 9, term 70 --> 1202167480887
base 8, term 30 --> 4752456545
base 4, term 13 --> 2123103032103331200023103133211223233322200311320011300320320100312133201303003031113021311200322222332322220300332231220022313031200030333132302313012110123012123010113230200132021023101313232010013102221103203031121232122020233303303303211132313213012222331020133


Notes



  • Standard loopholes are not allowed

  • Any default I/O method is allowed

  • You may use different indexes (such as 0-indexed, 1-indexed, 2-indexed, etc) for $t$

  • You may output the first $t$ terms.

  • As this is code-golf, shortest code wins for that language






code-golf number






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 19 at 23:42







MilkyWay90

















asked May 19 at 23:13









MilkyWay90MilkyWay90

955322




955322







  • 1




    $begingroup$
    Do we have to support larger numbers or just numbers up to 2^31 - 1?
    $endgroup$
    – Embodiment of Ignorance
    May 19 at 23:39






  • 1




    $begingroup$
    @EmbodimentofIgnorance The maximum of your language (Remember the standard loophole, though!)
    $endgroup$
    – MilkyWay90
    May 19 at 23:43










  • $begingroup$
    Is there a challenge that includes bases > 10? (In that case you would repeatedly interpret 11 as if it was in base b and convert it back to base 10, etc.)
    $endgroup$
    – Neil
    May 21 at 11:11










  • $begingroup$
    @Neil I didn't include bases higher than 10 since (for example) 4a wouldn't be a valid number in base-10
    $endgroup$
    – MilkyWay90
    May 22 at 22:49










  • $begingroup$
    You wouldn't get 4a, since you'd be interpreting the base 10 digits as base b and converting to base 10 each time (i.e. the other way around from this question).
    $endgroup$
    – Neil
    May 22 at 22:59












  • 1




    $begingroup$
    Do we have to support larger numbers or just numbers up to 2^31 - 1?
    $endgroup$
    – Embodiment of Ignorance
    May 19 at 23:39






  • 1




    $begingroup$
    @EmbodimentofIgnorance The maximum of your language (Remember the standard loophole, though!)
    $endgroup$
    – MilkyWay90
    May 19 at 23:43










  • $begingroup$
    Is there a challenge that includes bases > 10? (In that case you would repeatedly interpret 11 as if it was in base b and convert it back to base 10, etc.)
    $endgroup$
    – Neil
    May 21 at 11:11










  • $begingroup$
    @Neil I didn't include bases higher than 10 since (for example) 4a wouldn't be a valid number in base-10
    $endgroup$
    – MilkyWay90
    May 22 at 22:49










  • $begingroup$
    You wouldn't get 4a, since you'd be interpreting the base 10 digits as base b and converting to base 10 each time (i.e. the other way around from this question).
    $endgroup$
    – Neil
    May 22 at 22:59







1




1




$begingroup$
Do we have to support larger numbers or just numbers up to 2^31 - 1?
$endgroup$
– Embodiment of Ignorance
May 19 at 23:39




$begingroup$
Do we have to support larger numbers or just numbers up to 2^31 - 1?
$endgroup$
– Embodiment of Ignorance
May 19 at 23:39




1




1




$begingroup$
@EmbodimentofIgnorance The maximum of your language (Remember the standard loophole, though!)
$endgroup$
– MilkyWay90
May 19 at 23:43




$begingroup$
@EmbodimentofIgnorance The maximum of your language (Remember the standard loophole, though!)
$endgroup$
– MilkyWay90
May 19 at 23:43












$begingroup$
Is there a challenge that includes bases > 10? (In that case you would repeatedly interpret 11 as if it was in base b and convert it back to base 10, etc.)
$endgroup$
– Neil
May 21 at 11:11




$begingroup$
Is there a challenge that includes bases > 10? (In that case you would repeatedly interpret 11 as if it was in base b and convert it back to base 10, etc.)
$endgroup$
– Neil
May 21 at 11:11












$begingroup$
@Neil I didn't include bases higher than 10 since (for example) 4a wouldn't be a valid number in base-10
$endgroup$
– MilkyWay90
May 22 at 22:49




$begingroup$
@Neil I didn't include bases higher than 10 since (for example) 4a wouldn't be a valid number in base-10
$endgroup$
– MilkyWay90
May 22 at 22:49












$begingroup$
You wouldn't get 4a, since you'd be interpreting the base 10 digits as base b and converting to base 10 each time (i.e. the other way around from this question).
$endgroup$
– Neil
May 22 at 22:59




$begingroup$
You wouldn't get 4a, since you'd be interpreting the base 10 digits as base b and converting to base 10 each time (i.e. the other way around from this question).
$endgroup$
– Neil
May 22 at 22:59










22 Answers
22






active

oldest

votes


















6












$begingroup$


JavaScript (Node.js), 40 bytes



Thanks to @Neil for saving 5 bytes on this version and 2 bytes on the BigInt version



Takes input as (t)(base), where $t$ is 1-indexed.





n=>g=(b,x=11)=>--n?g(b,+x.toString(b)):x


Try it online!





JavaScript (Node.js), 48 bytes (BigInt version)



Takes input as (t)(base), where $t$ is 1-indexed. Returns a BigInt.





n=>g=(b,x=11n)=>--n?g(b,BigInt(x.toString(b))):x


Try it online!






share|improve this answer











$endgroup$












  • $begingroup$
    Do you need to eval in the first version? + would save 5 bytes...
    $endgroup$
    – Neil
    May 20 at 0:36










  • $begingroup$
    And BigInt saves two bytes in the second version, because you don't need to add n to the string.
    $endgroup$
    – Neil
    May 20 at 0:37










  • $begingroup$
    (b,t,x=11)=>--t?f(b,t,+x.toString(b)):x is 1 char shorter
    $endgroup$
    – Qwertiy
    May 25 at 21:45











  • $begingroup$
    @Qwertiy It's actually 1 byte longer, because we'd need to prepend f= (since the function is referencing itself).
    $endgroup$
    – Arnauld
    May 25 at 22:04











  • $begingroup$
    @Arnauld, oops. Then this one n=>b=>g=(x=11n)=>--n?g(BigInt(x.toString(b))):x :) If call f(t)(b)() is allowed.
    $endgroup$
    – Qwertiy
    May 25 at 22:07


















5












$begingroup$


05AB1E, 5 bytes



>IF¹B


Try it online!



Explanation



> # increment <base>
IF # <term> times do:
¹B # convert from base-10 to base-<base>


Note that there is no need to explicitly start the sequence at 11.

Starting at base+1 and doing an extra iteration will result in the first iteration giving 11.






share|improve this answer











$endgroup$




















    3












    $begingroup$


    Japt, 9 bytes



    ÆB=sV n
    B


    Try it



    (Two inputs, U and V)
    Æ Range [0..U)
    B= For each, set B (B is preinitialized to 11) to
    sV B's previous value converted to base-V
    n and back to base-10
    B Print out B's final value





    share|improve this answer











    $endgroup$












    • $begingroup$
      This will never be able to output the first term, will it?
      $endgroup$
      – Shaggy
      May 20 at 7:14










    • $begingroup$
      @Shaggy Fixed at the cost of two bytes
      $endgroup$
      – Embodiment of Ignorance
      May 20 at 21:57










    • $begingroup$
      Nicely saved :) Wouldn't have thought of doing that meself.
      $endgroup$
      – Shaggy
      May 21 at 22:25


















    2












    $begingroup$


    Wolfram Language (Mathematica), 46 bytes



    bNest[FromDigits[#~IntegerDigits~b]&,11,#]&


    Try it online!



    Call with f[base][t]. 0-indexed.






    share|improve this answer









    $endgroup$








    • 1




      $begingroup$
      41 bytes
      $endgroup$
      – Expired Data
      May 20 at 8:37


















    2












    $begingroup$


    Retina, 67 bytes



    .+,(d+)
    11,$1*
    "$+" helper function: convert to Base b (implicit) then convert to base 10
    {


    Try it online!






    share|improve this answer









    $endgroup$













      Your Answer






      StackExchange.ifUsing("editor", function ()
      StackExchange.using("externalEditor", function ()
      StackExchange.using("snippets", function ()
      StackExchange.snippets.init();
      );
      );
      , "code-snippets");

      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "200"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );













      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f185816%2fto-exponential-digit-growth-and-beyond%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      22 Answers
      22






      active

      oldest

      votes








      22 Answers
      22






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      6












      $begingroup$


      JavaScript (Node.js), 40 bytes



      Thanks to @Neil for saving 5 bytes on this version and 2 bytes on the BigInt version



      Takes input as (t)(base), where $t$ is 1-indexed.





      n=>g=(b,x=11)=>--n?g(b,+x.toString(b)):x


      Try it online!





      JavaScript (Node.js), 48 bytes (BigInt version)



      Takes input as (t)(base), where $t$ is 1-indexed. Returns a BigInt.





      n=>g=(b,x=11n)=>--n?g(b,BigInt(x.toString(b))):x


      Try it online!






      share|improve this answer











      $endgroup$












      • $begingroup$
        Do you need to eval in the first version? + would save 5 bytes...
        $endgroup$
        – Neil
        May 20 at 0:36










      • $begingroup$
        And BigInt saves two bytes in the second version, because you don't need to add n to the string.
        $endgroup$
        – Neil
        May 20 at 0:37










      • $begingroup$
        (b,t,x=11)=>--t?f(b,t,+x.toString(b)):x is 1 char shorter
        $endgroup$
        – Qwertiy
        May 25 at 21:45











      • $begingroup$
        @Qwertiy It's actually 1 byte longer, because we'd need to prepend f= (since the function is referencing itself).
        $endgroup$
        – Arnauld
        May 25 at 22:04











      • $begingroup$
        @Arnauld, oops. Then this one n=>b=>g=(x=11n)=>--n?g(BigInt(x.toString(b))):x :) If call f(t)(b)() is allowed.
        $endgroup$
        – Qwertiy
        May 25 at 22:07















      6












      $begingroup$


      JavaScript (Node.js), 40 bytes



      Thanks to @Neil for saving 5 bytes on this version and 2 bytes on the BigInt version



      Takes input as (t)(base), where $t$ is 1-indexed.





      n=>g=(b,x=11)=>--n?g(b,+x.toString(b)):x


      Try it online!





      JavaScript (Node.js), 48 bytes (BigInt version)



      Takes input as (t)(base), where $t$ is 1-indexed. Returns a BigInt.





      n=>g=(b,x=11n)=>--n?g(b,BigInt(x.toString(b))):x


      Try it online!






      share|improve this answer











      $endgroup$












      • $begingroup$
        Do you need to eval in the first version? + would save 5 bytes...
        $endgroup$
        – Neil
        May 20 at 0:36










      • $begingroup$
        And BigInt saves two bytes in the second version, because you don't need to add n to the string.
        $endgroup$
        – Neil
        May 20 at 0:37










      • $begingroup$
        (b,t,x=11)=>--t?f(b,t,+x.toString(b)):x is 1 char shorter
        $endgroup$
        – Qwertiy
        May 25 at 21:45











      • $begingroup$
        @Qwertiy It's actually 1 byte longer, because we'd need to prepend f= (since the function is referencing itself).
        $endgroup$
        – Arnauld
        May 25 at 22:04











      • $begingroup$
        @Arnauld, oops. Then this one n=>b=>g=(x=11n)=>--n?g(BigInt(x.toString(b))):x :) If call f(t)(b)() is allowed.
        $endgroup$
        – Qwertiy
        May 25 at 22:07













      6












      6








      6





      $begingroup$


      JavaScript (Node.js), 40 bytes



      Thanks to @Neil for saving 5 bytes on this version and 2 bytes on the BigInt version



      Takes input as (t)(base), where $t$ is 1-indexed.





      n=>g=(b,x=11)=>--n?g(b,+x.toString(b)):x


      Try it online!





      JavaScript (Node.js), 48 bytes (BigInt version)



      Takes input as (t)(base), where $t$ is 1-indexed. Returns a BigInt.





      n=>g=(b,x=11n)=>--n?g(b,BigInt(x.toString(b))):x


      Try it online!






      share|improve this answer











      $endgroup$




      JavaScript (Node.js), 40 bytes



      Thanks to @Neil for saving 5 bytes on this version and 2 bytes on the BigInt version



      Takes input as (t)(base), where $t$ is 1-indexed.





      n=>g=(b,x=11)=>--n?g(b,+x.toString(b)):x


      Try it online!





      JavaScript (Node.js), 48 bytes (BigInt version)



      Takes input as (t)(base), where $t$ is 1-indexed. Returns a BigInt.





      n=>g=(b,x=11n)=>--n?g(b,BigInt(x.toString(b))):x


      Try it online!







      share|improve this answer














      share|improve this answer



      share|improve this answer








      edited May 20 at 11:34

























      answered May 19 at 23:25









      ArnauldArnauld

      85.2k7100349




      85.2k7100349











      • $begingroup$
        Do you need to eval in the first version? + would save 5 bytes...
        $endgroup$
        – Neil
        May 20 at 0:36










      • $begingroup$
        And BigInt saves two bytes in the second version, because you don't need to add n to the string.
        $endgroup$
        – Neil
        May 20 at 0:37










      • $begingroup$
        (b,t,x=11)=>--t?f(b,t,+x.toString(b)):x is 1 char shorter
        $endgroup$
        – Qwertiy
        May 25 at 21:45











      • $begingroup$
        @Qwertiy It's actually 1 byte longer, because we'd need to prepend f= (since the function is referencing itself).
        $endgroup$
        – Arnauld
        May 25 at 22:04











      • $begingroup$
        @Arnauld, oops. Then this one n=>b=>g=(x=11n)=>--n?g(BigInt(x.toString(b))):x :) If call f(t)(b)() is allowed.
        $endgroup$
        – Qwertiy
        May 25 at 22:07
















      • $begingroup$
        Do you need to eval in the first version? + would save 5 bytes...
        $endgroup$
        – Neil
        May 20 at 0:36










      • $begingroup$
        And BigInt saves two bytes in the second version, because you don't need to add n to the string.
        $endgroup$
        – Neil
        May 20 at 0:37










      • $begingroup$
        (b,t,x=11)=>--t?f(b,t,+x.toString(b)):x is 1 char shorter
        $endgroup$
        – Qwertiy
        May 25 at 21:45











      • $begingroup$
        @Qwertiy It's actually 1 byte longer, because we'd need to prepend f= (since the function is referencing itself).
        $endgroup$
        – Arnauld
        May 25 at 22:04











      • $begingroup$
        @Arnauld, oops. Then this one n=>b=>g=(x=11n)=>--n?g(BigInt(x.toString(b))):x :) If call f(t)(b)() is allowed.
        $endgroup$
        – Qwertiy
        May 25 at 22:07















      $begingroup$
      Do you need to eval in the first version? + would save 5 bytes...
      $endgroup$
      – Neil
      May 20 at 0:36




      $begingroup$
      Do you need to eval in the first version? + would save 5 bytes...
      $endgroup$
      – Neil
      May 20 at 0:36












      $begingroup$
      And BigInt saves two bytes in the second version, because you don't need to add n to the string.
      $endgroup$
      – Neil
      May 20 at 0:37




      $begingroup$
      And BigInt saves two bytes in the second version, because you don't need to add n to the string.
      $endgroup$
      – Neil
      May 20 at 0:37












      $begingroup$
      (b,t,x=11)=>--t?f(b,t,+x.toString(b)):x is 1 char shorter
      $endgroup$
      – Qwertiy
      May 25 at 21:45





      $begingroup$
      (b,t,x=11)=>--t?f(b,t,+x.toString(b)):x is 1 char shorter
      $endgroup$
      – Qwertiy
      May 25 at 21:45













      $begingroup$
      @Qwertiy It's actually 1 byte longer, because we'd need to prepend f= (since the function is referencing itself).
      $endgroup$
      – Arnauld
      May 25 at 22:04





      $begingroup$
      @Qwertiy It's actually 1 byte longer, because we'd need to prepend f= (since the function is referencing itself).
      $endgroup$
      – Arnauld
      May 25 at 22:04













      $begingroup$
      @Arnauld, oops. Then this one n=>b=>g=(x=11n)=>--n?g(BigInt(x.toString(b))):x :) If call f(t)(b)() is allowed.
      $endgroup$
      – Qwertiy
      May 25 at 22:07




      $begingroup$
      @Arnauld, oops. Then this one n=>b=>g=(x=11n)=>--n?g(BigInt(x.toString(b))):x :) If call f(t)(b)() is allowed.
      $endgroup$
      – Qwertiy
      May 25 at 22:07











      5












      $begingroup$


      05AB1E, 5 bytes



      >IF¹B


      Try it online!



      Explanation



      > # increment <base>
      IF # <term> times do:
      ¹B # convert from base-10 to base-<base>


      Note that there is no need to explicitly start the sequence at 11.

      Starting at base+1 and doing an extra iteration will result in the first iteration giving 11.






      share|improve this answer











      $endgroup$

















        5












        $begingroup$


        05AB1E, 5 bytes



        >IF¹B


        Try it online!



        Explanation



        > # increment <base>
        IF # <term> times do:
        ¹B # convert from base-10 to base-<base>


        Note that there is no need to explicitly start the sequence at 11.

        Starting at base+1 and doing an extra iteration will result in the first iteration giving 11.






        share|improve this answer











        $endgroup$















          5












          5








          5





          $begingroup$


          05AB1E, 5 bytes



          >IF¹B


          Try it online!



          Explanation



          > # increment <base>
          IF # <term> times do:
          ¹B # convert from base-10 to base-<base>


          Note that there is no need to explicitly start the sequence at 11.

          Starting at base+1 and doing an extra iteration will result in the first iteration giving 11.






          share|improve this answer











          $endgroup$




          05AB1E, 5 bytes



          >IF¹B


          Try it online!



          Explanation



          > # increment <base>
          IF # <term> times do:
          ¹B # convert from base-10 to base-<base>


          Note that there is no need to explicitly start the sequence at 11.

          Starting at base+1 and doing an extra iteration will result in the first iteration giving 11.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited May 20 at 6:26

























          answered May 20 at 6:15









          EmignaEmigna

          49.5k534150




          49.5k534150





















              3












              $begingroup$


              Japt, 9 bytes



              ÆB=sV n
              B


              Try it



              (Two inputs, U and V)
              Æ Range [0..U)
              B= For each, set B (B is preinitialized to 11) to
              sV B's previous value converted to base-V
              n and back to base-10
              B Print out B's final value





              share|improve this answer











              $endgroup$












              • $begingroup$
                This will never be able to output the first term, will it?
                $endgroup$
                – Shaggy
                May 20 at 7:14










              • $begingroup$
                @Shaggy Fixed at the cost of two bytes
                $endgroup$
                – Embodiment of Ignorance
                May 20 at 21:57










              • $begingroup$
                Nicely saved :) Wouldn't have thought of doing that meself.
                $endgroup$
                – Shaggy
                May 21 at 22:25















              3












              $begingroup$


              Japt, 9 bytes



              ÆB=sV n
              B


              Try it



              (Two inputs, U and V)
              Æ Range [0..U)
              B= For each, set B (B is preinitialized to 11) to
              sV B's previous value converted to base-V
              n and back to base-10
              B Print out B's final value





              share|improve this answer











              $endgroup$












              • $begingroup$
                This will never be able to output the first term, will it?
                $endgroup$
                – Shaggy
                May 20 at 7:14










              • $begingroup$
                @Shaggy Fixed at the cost of two bytes
                $endgroup$
                – Embodiment of Ignorance
                May 20 at 21:57










              • $begingroup$
                Nicely saved :) Wouldn't have thought of doing that meself.
                $endgroup$
                – Shaggy
                May 21 at 22:25













              3












              3








              3





              $begingroup$


              Japt, 9 bytes



              ÆB=sV n
              B


              Try it



              (Two inputs, U and V)
              Æ Range [0..U)
              B= For each, set B (B is preinitialized to 11) to
              sV B's previous value converted to base-V
              n and back to base-10
              B Print out B's final value





              share|improve this answer











              $endgroup$




              Japt, 9 bytes



              ÆB=sV n
              B


              Try it



              (Two inputs, U and V)
              Æ Range [0..U)
              B= For each, set B (B is preinitialized to 11) to
              sV B's previous value converted to base-V
              n and back to base-10
              B Print out B's final value






              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited May 20 at 21:57

























              answered May 20 at 2:02









              Embodiment of IgnoranceEmbodiment of Ignorance

              3,874128




              3,874128











              • $begingroup$
                This will never be able to output the first term, will it?
                $endgroup$
                – Shaggy
                May 20 at 7:14










              • $begingroup$
                @Shaggy Fixed at the cost of two bytes
                $endgroup$
                – Embodiment of Ignorance
                May 20 at 21:57










              • $begingroup$
                Nicely saved :) Wouldn't have thought of doing that meself.
                $endgroup$
                – Shaggy
                May 21 at 22:25
















              • $begingroup$
                This will never be able to output the first term, will it?
                $endgroup$
                – Shaggy
                May 20 at 7:14










              • $begingroup$
                @Shaggy Fixed at the cost of two bytes
                $endgroup$
                – Embodiment of Ignorance
                May 20 at 21:57










              • $begingroup$
                Nicely saved :) Wouldn't have thought of doing that meself.
                $endgroup$
                – Shaggy
                May 21 at 22:25















              $begingroup$
              This will never be able to output the first term, will it?
              $endgroup$
              – Shaggy
              May 20 at 7:14




              $begingroup$
              This will never be able to output the first term, will it?
              $endgroup$
              – Shaggy
              May 20 at 7:14












              $begingroup$
              @Shaggy Fixed at the cost of two bytes
              $endgroup$
              – Embodiment of Ignorance
              May 20 at 21:57




              $begingroup$
              @Shaggy Fixed at the cost of two bytes
              $endgroup$
              – Embodiment of Ignorance
              May 20 at 21:57












              $begingroup$
              Nicely saved :) Wouldn't have thought of doing that meself.
              $endgroup$
              – Shaggy
              May 21 at 22:25




              $begingroup$
              Nicely saved :) Wouldn't have thought of doing that meself.
              $endgroup$
              – Shaggy
              May 21 at 22:25











              2












              $begingroup$


              Wolfram Language (Mathematica), 46 bytes



              bNest[FromDigits[#~IntegerDigits~b]&,11,#]&


              Try it online!



              Call with f[base][t]. 0-indexed.






              share|improve this answer









              $endgroup$








              • 1




                $begingroup$
                41 bytes
                $endgroup$
                – Expired Data
                May 20 at 8:37















              2












              $begingroup$


              Wolfram Language (Mathematica), 46 bytes



              bNest[FromDigits[#~IntegerDigits~b]&,11,#]&


              Try it online!



              Call with f[base][t]. 0-indexed.






              share|improve this answer









              $endgroup$








              • 1




                $begingroup$
                41 bytes
                $endgroup$
                – Expired Data
                May 20 at 8:37













              2












              2








              2





              $begingroup$


              Wolfram Language (Mathematica), 46 bytes



              bNest[FromDigits[#~IntegerDigits~b]&,11,#]&


              Try it online!



              Call with f[base][t]. 0-indexed.






              share|improve this answer









              $endgroup$




              Wolfram Language (Mathematica), 46 bytes



              bNest[FromDigits[#~IntegerDigits~b]&,11,#]&


              Try it online!



              Call with f[base][t]. 0-indexed.







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered May 19 at 23:33









              attinatattinat

              1,09718




              1,09718







              • 1




                $begingroup$
                41 bytes
                $endgroup$
                – Expired Data
                May 20 at 8:37












              • 1




                $begingroup$
                41 bytes
                $endgroup$
                – Expired Data
                May 20 at 8:37







              1




              1




              $begingroup$
              41 bytes
              $endgroup$
              – Expired Data
              May 20 at 8:37




              $begingroup$
              41 bytes
              $endgroup$
              – Expired Data
              May 20 at 8:37











              2












              $begingroup$


              Retina, 67 bytes



              .+,(d+)
              11,$1*
              "$+"{`^d+
              *
              )+`(?=_.*,(_+))(1)*(_*)
              $#2*_$.3
              ,_+



              Try it online! Takes comma-separated inputs $t$ (0-indexed) and $b$. Does all of its calculations in unary so times out for large numbers. Explanation:



              .+,(d+)
              11,$1*


              Initialise $x_0=11$ and convert $b$ to unary.



              "$+"{`


              Repeat $t$ times.



              ^d+
              *


              Convert $x_i$ to unary.



              )+`(?=_.*,(_+))(1)*(_*)
              $#2*_$.3


              Convert to base $b$.



              ,_+



              Delete $b$ from the output.






              share|improve this answer









              $endgroup$

















                2












                $begingroup$


                Retina, 67 bytes



                .+,(d+)
                11,$1*
                "$+"{`^d+
                *
                )+`(?=_.*,(_+))(1)*(_*)
                $#2*_$.3
                ,_+



                Try it online! Takes comma-separated inputs $t$ (0-indexed) and $b$. Does all of its calculations in unary so times out for large numbers. Explanation:



                .+,(d+)
                11,$1*


                Initialise $x_0=11$ and convert $b$ to unary.



                "$+" push # of iterations
                ↑ₓ


                Try it online!






                share 









                0












                0








                0





                $begingroup$


                Perl 5 -Mbigint -pa, 65 bytes





                $=11;map$p=$;$%=0+"@F";$=($p%"@F").$while$p/=0+"@F"2..<>


                Try it online!






                share{


                Try it online!







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered May 22 at 20:50









                XcaliXcali

                5,938523




                5,938523



























                    draft saved

                    draft discarded
















































                    If this is an answer to a challenge…



                    • …Be sure to follow the challenge specification. However, please refrain from exploiting obvious loopholes. Answers abusing any of the standard loopholes are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.


                    • …Try to optimize your score. For instance, answers to code-golf challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one.
                      Explanations of your answer make it more interesting to read and are very much encouraged.


                    • …Include a short header which indicates the language(s) of your code and its score, as defined by the challenge.


                    More generally…



                    • …Please make sure to answer the question and provide sufficient detail.


                    • …Avoid asking for help, clarification or responding to other answers (use comments instead).




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f185816%2fto-exponential-digit-growth-and-beyond%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

                    Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

                    What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company