OFFSET
1,2
COMMENTS
Smallest n-digit number in A077368. - Andrew Howroyd, Sep 21 2024
FORMULA
a(n) <= A077370(n). - Andrew Howroyd, Sep 21 2024
PROG
(PARI) \\ here isok(k) tests if k in A077368.
isok(k)={if(k<10, 1, my(b=10^logint(k, 10)); ispolygonal(k%b\10, 3) && ispolygonal(k\b*10+k%10, 3))}
a(n)={for(k=(sqrtint(8*(10^(n-1)-1)+1)+1)\2, (sqrtint(8*(10^n-1)+1) -1)\2, my(t=k*(k+1)/2); if(isok(t), return(t))); oo} \\ Andrew Howroyd, Sep 21 2024
CROSSREFS
KEYWORD
base,easy,nonn
AUTHOR
Amarnath Murthy, Nov 06 2002
EXTENSIONS
Offset corrected and a(6)-a(22) from Andrew Howroyd, Sep 21 2024
STATUS
approved