A225120 Square numbers whose decimal representation can be divided into two or more semiprimes.
49, 64, 144, 256, 576, 625, 1156, 1296, 1444, 1521, 2209, 2916, 3364, 3844, 3969, 4096, 4356, 4489, 4624, 6889, 7744, 8649, 9025, 9216, 9409, 9604, 10201, 10404, 10609, 10816, 12321, 12996, 13456, 14161, 15129, 15376, 15625, 15876, 17956, 18496, 18769, 20164
Offset: 1
Examples
a(50) = 25921, which is 161^2, and can be separated into semiprimes three ways: 25|921, 25|9|21, and 259|21.
Links
- Christian N. K. Anderson, Table of n, a(n) for n = 1..10000
- Christian N. K. Anderson, Table of n, a(n), sqrt(a(n)), all possible separations of a(n) into semiprimes for n = 1...10000.
Programs
-
R
issemipr<-function(n) ifelse(n<4,F,length(factorize(n))==2) splithasproperty<-function(n,FUN,curdig=1,res=list(),curspl=c()) { no0<-function(s){ while(substr(s,1,1)=="0" & nchar(s)>1) s=substr(s,2,nchar(s)); s} s=as.character(n) if(curdig>nchar(s)) return(res) if(length(curspl)>0) if(FUN(as.bigz(no0(substr(s,curdig,nchar(s)))))) res[[length(res)+1]]=curspl for(i in curdig:nchar(s)) if(FUN(as.bigz(no0(substr(s,curdig,i))))) res=splithasproperty(n,FUN,i+1,res,c(curspl,i)) res } which(sapply(1:100,function(x) length(splithasproperty(x^2,issemipr))>0))^2
Comments