I will show triangular number with $k$. A triangular number is a number that applies to this formula :$$k=\frac{(n)(n+1)}{2}.$$ This $k$ can have different amount of denominators. But there are amounts of denominators which $k$ can never have. For example k can never have 22 denominators. (A short list of denominators $k$ can't have: 3, 5, 7, 11, 13, 15, 17, 19, 21, 22, 23, 25, 26, 27, 29, 31, 33, 34, 35, 37, 38, 39, 41) Is there any relevance or algorithm between the amount of denominators which $k$ can't have?
EDIT: The way I found these numbers was that I wrote this code in C language :
#include <stdio.h>
#include <math.h>
int main()
{
int k=0, n=0, sum=0, denominator=0, count=0;
scanf("%d", &k);
if (1>k)
return 0;
n=1;
while (count!=k)
{
count=0;
sum=(n*(n+1))/2;
for (denominator=1; denominator<=sum; denominator++)
{
if (sum%denominator==0)
count++;
}
n++;
}
if (count==k)
printf("%d", sum);
return 0;
}
(This code will give you the smallest triangular number which has k denominators.)