OFFSET
1,1
COMMENTS
A brilliant number is a semiprime (products of two primes, A001358) whose two prime factors have the same number of decimal digits. For an n-digit brilliant number, the two prime factors must each have ceiling(n/2) decimal digits.
LINKS
Dario Alejandro Alpern, Brilliant numbers
World of Numbers, Smallest n-digit prp
FORMULA
EXAMPLE
a(6) = 100013 = 103 * 971.
a(7) = 1018081 = 1009 * 1009.
a(8) = 10000043 = 2089 * 4787.
a(9) = 100140049 = 10007 * 10007.
MATHEMATICA
Join[{4, 10}, Table[Module[{k=1}, While[PrimeOmega[10^n+k]!=2||Length[ Union[ IntegerLength/@ FactorInteger[ 10^n+k][[;; , 1]]]]!=1, k+=2]; 10^n+k], {n, 2, 20}]] (* Harvey P. Dale, Jan 09 2024 *)
PROG
(PARI) isA078972(n)=my(f=factor(n)); (#f[, 1]==1 && f[1, 2]==2) || (#f[, 1]==2 && f[1, 2]==1 && f[2, 2]==1 && #Str(f[1, 1])==#Str(f[2, 1]))
A084476(n)=for(k=0, 10^n, if(isA078972(10^(2*n-1)+k), return(k)))
a(n)=if(n%2, nextprime(10^((n-1)/2))^2, 10^(n-1)+A084476(n/2)) \\ after Charles R Greathouse IV in A078972
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Eric Chen, Sep 15 2021
STATUS
approved