<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
  <channel>
    <title>MaplePrimes - answers and comments on Question, How many divisors</title>
    <link>http://www.mapleprimes.com/questions/140998-How-Many-Divisors</link>
    <language>en-us</language>
    <copyright>2026 Maplesoft, A Division of Waterloo Maple Inc.</copyright>
    <generator>Maplesoft Document System</generator>
    <lastBuildDate>Tue, 09 Jun 2026 07:24:07 GMT</lastBuildDate>
    <pubDate>Tue, 09 Jun 2026 07:24:07 GMT</pubDate>
    <itunes:subtitle />
    <itunes:summary />
    <description>The latest answers and comments added to the Question, How many divisors</description>
    <image>
      <url>http://www.mapleprimes.com/images/mapleprimeswhite.jpg</url>
      <title>MaplePrimes - answers and comments on Question, How many divisors</title>
      <link>http://www.mapleprimes.com/questions/140998-How-Many-Divisors</link>
    </image>
    <item>
      <title>Brute force search won't work</title>
      <link>http://www.mapleprimes.com/questions/140998-How-Many-Divisors?ref=Feed:MaplePrimes:How many divisors:Comments#answer141013</link>
      <itunes:summary>&lt;p&gt;So, from your code, I'm guessing that for each integer&lt;em&gt; i&lt;/em&gt; from 1 to 100, you want to find the smallest &lt;em&gt;n&lt;/em&gt; such that tau(&lt;em&gt;n&lt;/em&gt;) =&lt;em&gt; i&lt;/em&gt;.&amp;nbsp; In other words, you want a partial inverse of the tau function. (Note to other readers: tau(&lt;em&gt;n&lt;/em&gt;) is the number of positive integer divisors of&lt;em&gt; n&lt;/em&gt;.) But your method won't work because for &lt;em&gt;i &lt;/em&gt;= 97, &lt;em&gt;n &lt;/em&gt;will have 29 decimal digits, and the whole age of the universe wouldn't be enough time to get to that number if you work by counting up from 1. I don't want to say what that 29-digit number is, because it would give too much of a hint.&lt;/p&gt;
&lt;p&gt;Hint: You are correct that the prime factorization of &lt;em&gt;n&lt;/em&gt; is the key to computing tau(&lt;em&gt;n&lt;/em&gt;). Indeed, the primes themselves don't matter; it can be computed just from the exponents in the factorization. Take a look at &lt;strong&gt;showstat(numtheory:-tau)&lt;/strong&gt;. It's a very short procedure; only the last actual line of code matters here; the other lines are just there to quickly handle the trivial cases. Once you know what you want the exponents to be, just pick the prime bases that minimize the product.&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;So, from your code, I'm guessing that for each integer&lt;em&gt; i&lt;/em&gt; from 1 to 100, you want to find the smallest &lt;em&gt;n&lt;/em&gt; such that tau(&lt;em&gt;n&lt;/em&gt;) =&lt;em&gt; i&lt;/em&gt;.&amp;nbsp; In other words, you want a partial inverse of the tau function. (Note to other readers: tau(&lt;em&gt;n&lt;/em&gt;) is the number of positive integer divisors of&lt;em&gt; n&lt;/em&gt;.) But your method won't work because for &lt;em&gt;i &lt;/em&gt;= 97, &lt;em&gt;n &lt;/em&gt;will have 29 decimal digits, and the whole age of the universe wouldn't be enough time to get to that number if you work by counting up from 1. I don't want to say what that 29-digit number is, because it would give too much of a hint.&lt;/p&gt;
&lt;p&gt;Hint: You are correct that the prime factorization of &lt;em&gt;n&lt;/em&gt; is the key to computing tau(&lt;em&gt;n&lt;/em&gt;). Indeed, the primes themselves don't matter; it can be computed just from the exponents in the factorization. Take a look at &lt;strong&gt;showstat(numtheory:-tau)&lt;/strong&gt;. It's a very short procedure; only the last actual line of code matters here; the other lines are just there to quickly handle the trivial cases. Once you know what you want the exponents to be, just pick the prime bases that minimize the product.&amp;nbsp;&lt;/p&gt;</description>
      <guid>141013</guid>
      <pubDate>Sun, 02 Dec 2012 03:45:36 Z</pubDate>
      <itunes:author>Carl Love</itunes:author>
      <author>Carl Love</author>
    </item>
    <item>
      <title>Solution</title>
      <link>http://www.mapleprimes.com/questions/140998-How-Many-Divisors?ref=Feed:MaplePrimes:How many divisors:Comments#answer141183</link>
      <itunes:summary>&lt;p&gt;The next procedure solves the problem:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Divs:=proc(n)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;local L, M, Div, k, i, K, j, T, P; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;uses numtheory;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;if n=1 then return [1,1] else&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;L[1]:=[[n]];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;M:=[];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Div:=divisors(n) minus {1, n};&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;for k in Div while n/k&amp;gt;=k do&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;M:=[op(M), [n/k, k]];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;od;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;L[2]:=M;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;for i from 3 to bigomega(n) do&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;K:=[];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;for j from 1 to nops(L[i-1]) do&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Div:=divisors(L[i-1][j,1]) minus {1, L[i-1][j,1]};&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;for k in Div while L[i-1][j,1]/k&amp;gt;=k and k&amp;gt;=L[i-1][j,2] do&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;K:=[op(K),[L[i-1][j, 1]/k, k, op(L[i-1][j][2..nops(L[i-1][j])])]];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;od; od;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;L[i]:=K; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;od;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;L:=[seq(L[i], i=1..bigomega(n))];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;M:=[]; T:=[seq(ithprime(k), k=1..bigomega(n))]; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;for i from 1 to nops(L) do&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;P[i]:=[seq(T[k], k=1..i)];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;for j from 1 to nops(L[i]) do&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;M:=[op(M), mul(P[i][t]^(L[i][j,t]-1), t=1..nops(P[i]))];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;od: od:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;[n, min(M)]; fi;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;end proc:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;strong&gt;&lt;span style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 12pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-themecolor: text1;"&gt;&lt;strong&gt;&lt;span style="color: red; line-height: 115%; font-family: 'Courier New'; font-size: 12pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;[seq(Divs(n), n=1..100)];&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;strong&gt;&lt;span style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 12pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-themecolor: text1;"&gt;&lt;strong&gt;&lt;img src="http://s017.radikal.ru/i427/1212/43/d5504138ddca.jpg" alt="" width="640" height="259"&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp; &lt;/strong&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;The next procedure solves the problem:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Divs:=proc(n)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;local L, M, Div, k, i, K, j, T, P; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;uses numtheory;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;if n=1 then return [1,1] else&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;L[1]:=[[n]];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;M:=[];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Div:=divisors(n) minus {1, n};&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;for k in Div while n/k&amp;gt;=k do&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;M:=[op(M), [n/k, k]];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;od;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;L[2]:=M;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;for i from 3 to bigomega(n) do&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;K:=[];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;for j from 1 to nops(L[i-1]) do&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Div:=divisors(L[i-1][j,1]) minus {1, L[i-1][j,1]};&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;for k in Div while L[i-1][j,1]/k&amp;gt;=k and k&amp;gt;=L[i-1][j,2] do&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;K:=[op(K),[L[i-1][j, 1]/k, k, op(L[i-1][j][2..nops(L[i-1][j])])]];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;od; od;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;L[i]:=K; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;od;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;L:=[seq(L[i], i=1..bigomega(n))];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;M:=[]; T:=[seq(ithprime(k), k=1..bigomega(n))]; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;for i from 1 to nops(L) do&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;P[i]:=[seq(T[k], k=1..i)];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;for j from 1 to nops(L[i]) do&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;M:=[op(M), mul(P[i][t]^(L[i][j,t]-1), t=1..nops(P[i]))];&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;od: od:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;[n, min(M)]; fi;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;end proc:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;strong&gt;&lt;span style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 12pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-themecolor: text1;"&gt;&lt;strong&gt;&lt;span style="color: red; line-height: 115%; font-family: 'Courier New'; font-size: 12pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;[seq(Divs(n), n=1..100)];&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;strong&gt;&lt;span style="color: black; line-height: 115%; font-family: 'Courier New'; font-size: 12pt; mso-ansi-language: EN-US; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-fareast-language: EN-US; mso-bidi-language: AR-SA; mso-themecolor: text1;"&gt;&lt;strong&gt;&lt;img src="http://s017.radikal.ru/i427/1212/43/d5504138ddca.jpg" alt="" width="640" height="259"&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;nbsp; &lt;/strong&gt;&lt;/p&gt;</description>
      <guid>141183</guid>
      <pubDate>Thu, 06 Dec 2012 23:06:00 Z</pubDate>
      <itunes:author>Kitonum</itunes:author>
      <author>Kitonum</author>
    </item>
    <item>
      <title>Another solution</title>
      <link>http://www.mapleprimes.com/questions/140998-How-Many-Divisors?ref=Feed:MaplePrimes:How many divisors:Comments#answer141188</link>
      <itunes:summary>&lt;p&gt;Here's my solution:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;gt; restart;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; invtau:= proc(n::posint)&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; # Inverse tau: Returns the smallest positive integer r such&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; # tau(r) = n, where tau(r) is the number of positive integer&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; # divisors of r (see &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=numtheory,tau)' target='_new'&gt;?numtheory,tau)&lt;/a&gt;.&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; local pair, r:= 1, r_prime:= 1, exponent;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for pair in ListTools:-Reverse(sort(ifactors(n)[2])) do&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; exponent:= pair[1] - 1;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to pair[2] do&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r_prime:= nextprime(r_prime);&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r:= r*r_prime^exponent&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; od&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; od;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp; end proc:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;&lt;strong&gt;&amp;gt; st:= time():&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;gt; [seq]([n,invtau(n)], n= 1..100);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;[[1, 1], [2, 2], [3, 4], [4, 6], [5, 16], [6, 12], [7, 64], [8, 30], [9, 36], [10, 48], [11, 1024], [12, 60], [13, 4096], [14, 192], [15, 144], [16, 210], [17, 65536], [18, 180], [19, 262144], [20, 240], [21, 576], [22, 3072], [23, 4194304], [24, 420], [25, 1296], [26, 12288], [27, 900], [28, 960], [29, 268435456], [30, 720], [31, 1073741824], [32, 2310], [33, 9216], [34, 196608], [35, 5184], [36, 1260], [37, 68719476736], [38, 786432], [39, 36864], [40, 1680], [41, 1099511627776], [42, 2880], [43, 4398046511104], [44, 15360], [45, 3600], [46, 12582912], [47, 70368744177664], [48, 4620], [49, 46656], [50, 6480], [51, 589824], [52, 61440], &lt;br&gt;[53, 4503599627370496], [54, 6300], [55, 82944], [56, 6720], [57, 2359296], [58, 805306368], [59, 288230376151711744], [60, 5040], [61, 1152921504606846976], [62, 3221225472], [63, 14400], [64, 30030], [65, 331776], [66, 46080], [67, 73786976294838206464], [68, 983040], [69, 37748736], [70, 25920], [71, 1180591620717411303424], [72, 13860], [73, 4722366482869645213696], [74, 206158430208], [75, 32400], [76, 3932160], [77, 746496], [78, 184320], [79, 302231454903657293676544], [80, 18480], [81, 44100], [82, 3298534883328], [83, 4835703278458516698824704], [84, 20160], [85, 5308416], [86, 13194139533312], [87, 2415919104], [88, 107520], [89, 309485009821345068724781056], [90, 25200], [91, 2985984], [92, 62914560], [93, 9663676416], [94, 211106232532992], [95, 21233664], [96, 60060], [97, 79228162514264337593543950336], [98, 233280], [99, 230400], [100, 45360]]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;gt; time()-st;&lt;/strong&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.031&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;Here's my solution:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;gt; restart;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; invtau:= proc(n::posint)&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; # Inverse tau: Returns the smallest positive integer r such&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; # tau(r) = n, where tau(r) is the number of positive integer&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; # divisors of r (see &lt;a href='http://www.maplesoft.com/support/help/search.aspx?term=numtheory,tau)' target='_new'&gt;?numtheory,tau)&lt;/a&gt;.&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; local pair, r:= 1, r_prime:= 1, exponent;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for pair in ListTools:-Reverse(sort(ifactors(n)[2])) do&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; exponent:= pair[1] - 1;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; to pair[2] do&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; r_prime:= nextprime(r_prime);&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r:= r*r_prime^exponent&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; od&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; od;&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; r&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;nbsp; end proc:&lt;/strong&gt;&lt;br&gt;&lt;br&gt;&lt;strong&gt;&amp;gt; st:= time():&lt;/strong&gt;&lt;br&gt;&lt;strong&gt;&amp;gt; [seq]([n,invtau(n)], n= 1..100);&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;br&gt;[[1, 1], [2, 2], [3, 4], [4, 6], [5, 16], [6, 12], [7, 64], [8, 30], [9, 36], [10, 48], [11, 1024], [12, 60], [13, 4096], [14, 192], [15, 144], [16, 210], [17, 65536], [18, 180], [19, 262144], [20, 240], [21, 576], [22, 3072], [23, 4194304], [24, 420], [25, 1296], [26, 12288], [27, 900], [28, 960], [29, 268435456], [30, 720], [31, 1073741824], [32, 2310], [33, 9216], [34, 196608], [35, 5184], [36, 1260], [37, 68719476736], [38, 786432], [39, 36864], [40, 1680], [41, 1099511627776], [42, 2880], [43, 4398046511104], [44, 15360], [45, 3600], [46, 12582912], [47, 70368744177664], [48, 4620], [49, 46656], [50, 6480], [51, 589824], [52, 61440], &lt;br&gt;[53, 4503599627370496], [54, 6300], [55, 82944], [56, 6720], [57, 2359296], [58, 805306368], [59, 288230376151711744], [60, 5040], [61, 1152921504606846976], [62, 3221225472], [63, 14400], [64, 30030], [65, 331776], [66, 46080], [67, 73786976294838206464], [68, 983040], [69, 37748736], [70, 25920], [71, 1180591620717411303424], [72, 13860], [73, 4722366482869645213696], [74, 206158430208], [75, 32400], [76, 3932160], [77, 746496], [78, 184320], [79, 302231454903657293676544], [80, 18480], [81, 44100], [82, 3298534883328], [83, 4835703278458516698824704], [84, 20160], [85, 5308416], [86, 13194139533312], [87, 2415919104], [88, 107520], [89, 309485009821345068724781056], [90, 25200], [91, 2985984], [92, 62914560], [93, 9663676416], [94, 211106232532992], [95, 21233664], [96, 60060], [97, 79228162514264337593543950336], [98, 233280], [99, 230400], [100, 45360]]&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&amp;gt; time()-st;&lt;/strong&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.031&lt;/p&gt;</description>
      <guid>141188</guid>
      <pubDate>Fri, 07 Dec 2012 00:02:36 Z</pubDate>
      <itunes:author>Carl Love</itunes:author>
      <author>Carl Love</author>
    </item>
    <item>
      <title>mul(x[2]+1,x = ifactors(n)[2])</title>
      <link>http://www.mapleprimes.com/questions/140998-How-Many-Divisors?ref=Feed:MaplePrimes:How many divisors:Comments#comment141022</link>
      <itunes:summary>&lt;p&gt;So, I have work with&amp;nbsp;&amp;nbsp;mul(x[2]+1,x = ifactors(n)[2]). I tried a lot, but it still doesn't want to do, what I want. Can you give me a little bit more help, please? Thanks in advance&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;So, I have work with&amp;nbsp;&amp;nbsp;mul(x[2]+1,x = ifactors(n)[2]). I tried a lot, but it still doesn't want to do, what I want. Can you give me a little bit more help, please? Thanks in advance&amp;nbsp;&lt;/p&gt;</description>
      <guid>141022</guid>
      <pubDate>Sun, 02 Dec 2012 16:27:44 Z</pubDate>
      <itunes:author>Eryndis</itunes:author>
      <author>Eryndis</author>
    </item>
    <item>
      <title>What exactly do you want?</title>
      <link>http://www.mapleprimes.com/questions/140998-How-Many-Divisors?ref=Feed:MaplePrimes:How many divisors:Comments#comment141023</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/140998-How-Many-Divisors#comment141022"&gt;@Eryndis&lt;/a&gt; Well, tell me what exactly you want. Was I correct in guessing that for each &lt;em&gt;i&lt;/em&gt; you want the smallest positive &lt;em&gt;n&lt;/em&gt; such that tau(&lt;em&gt;n&lt;/em&gt;) = &lt;em&gt;i&lt;/em&gt; (a partial inverse of tau)? Would any positive &lt;em&gt;n&lt;/em&gt;, not necessarily the smallest, such that tau(&lt;em&gt;n&lt;/em&gt;) = &lt;em&gt;i &lt;/em&gt;be good enough? &lt;/p&gt;
&lt;p&gt;My hint about that line of code was not that you would use it in a program, but that you would use it to understand how tau is computed. Once you know how tau is computed, it should be relatively easy to figure out how to write code for a partial inverse that runs in a short amount of time. &lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Hint 2:&lt;/strong&gt; For a bunch of different numbers &lt;em&gt;n&lt;/em&gt;, look at &lt;strong&gt;ifactors(n)&lt;/strong&gt; and &lt;strong&gt;ifactors(tau(n))&lt;/strong&gt;. What is the pattern?&lt;/p&gt;
&lt;p&gt;Here is a related, but simpler, exercise: What are necessary and sufficient conditions for tau(&lt;em&gt;n&lt;/em&gt;) to be odd? This one is a standard in mathematical puzzle collections for the general public, although it is always stated in more fanciful form referring to a long hallway of numbered locker doors or pull-chain lights. See &lt;span style="text-decoration: underline;"&gt;http://www.algebra.com/algebra/homework/word/misc/Miscellaneous_Word_Problems.faq.question.51262.html&lt;/span&gt;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/140998-How-Many-Divisors#comment141022"&gt;@Eryndis&lt;/a&gt; Well, tell me what exactly you want. Was I correct in guessing that for each &lt;em&gt;i&lt;/em&gt; you want the smallest positive &lt;em&gt;n&lt;/em&gt; such that tau(&lt;em&gt;n&lt;/em&gt;) = &lt;em&gt;i&lt;/em&gt; (a partial inverse of tau)? Would any positive &lt;em&gt;n&lt;/em&gt;, not necessarily the smallest, such that tau(&lt;em&gt;n&lt;/em&gt;) = &lt;em&gt;i &lt;/em&gt;be good enough? &lt;/p&gt;
&lt;p&gt;My hint about that line of code was not that you would use it in a program, but that you would use it to understand how tau is computed. Once you know how tau is computed, it should be relatively easy to figure out how to write code for a partial inverse that runs in a short amount of time. &lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Hint 2:&lt;/strong&gt; For a bunch of different numbers &lt;em&gt;n&lt;/em&gt;, look at &lt;strong&gt;ifactors(n)&lt;/strong&gt; and &lt;strong&gt;ifactors(tau(n))&lt;/strong&gt;. What is the pattern?&lt;/p&gt;
&lt;p&gt;Here is a related, but simpler, exercise: What are necessary and sufficient conditions for tau(&lt;em&gt;n&lt;/em&gt;) to be odd? This one is a standard in mathematical puzzle collections for the general public, although it is always stated in more fanciful form referring to a long hallway of numbered locker doors or pull-chain lights. See &lt;span style="text-decoration: underline;"&gt;http://www.algebra.com/algebra/homework/word/misc/Miscellaneous_Word_Problems.faq.question.51262.html&lt;/span&gt;&lt;/p&gt;</description>
      <guid>141023</guid>
      <pubDate>Sun, 02 Dec 2012 20:22:35 Z</pubDate>
      <itunes:author>Carl Love</itunes:author>
      <author>Carl Love</author>
    </item>
    <item>
      <title>The smallest</title>
      <link>http://www.mapleprimes.com/questions/140998-How-Many-Divisors?ref=Feed:MaplePrimes:How many divisors:Comments#comment141024</link>
      <itunes:summary>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/140998-How-Many-Divisors#comment141023"&gt;@Carl Love&lt;/a&gt;&amp;nbsp;&lt;br&gt;I need the smallest.&amp;nbsp;&lt;/p&gt;</itunes:summary>
      <description>&lt;p&gt;&lt;a href="http://www.mapleprimes.com/questions/140998-How-Many-Divisors#comment141023"&gt;@Carl Love&lt;/a&gt;&amp;nbsp;&lt;br&gt;I need the smallest.&amp;nbsp;&lt;/p&gt;</description>
      <guid>141024</guid>
      <pubDate>Mon, 03 Dec 2012 01:46:07 Z</pubDate>
      <itunes:author>Eryndis</itunes:author>
      <author>Eryndis</author>
    </item>
  </channel>
</rss>