OFFSET
1,1
COMMENTS
LINKS
Klaus Brockhaus, Table of n, a(n) for n = 1..1000
MATHEMATICA
Take[Union[Flatten[Table[FromDigits[Flatten[{IntegerDigits[m^2], IntegerDigits[n^2]}]], {m, 20}, {n, 20}]]], 50] (* Alonso del Arte, Aug 11 2011 *)
squareQ[n_] := IntegerQ[Sqrt[n]]; okQ[n_] := MatchQ[IntegerDigits[n], {a__ /; squareQ[FromDigits[{a}]], b__ /; First[{b}] > 0 && squareQ[FromDigits[ {b}]]}]; Select[Range[2000], okQ] (* Jean-François Alcover, Dec 13 2016 *)
PROG
(Magma) CheckSplits:=function(n); v:=false; S:=Intseq(n); for j in [1..#S-1] do A:=[ S[k]: k in [1..j] ]; a:=Seqint(A); B:=[ S[k]: k in [j+1..#S] ]; b:=Seqint(B); if a gt 0 and A[#A] gt 0 and IsSquare(a) and IsSquare(b) then v:=true; end if; end for; return v; end function; [ p: p in [1..1200] | CheckSplits(p) ];
(Haskell)
import Data.List (findIndices)
a191933 n = a191933_list !! (n-1)
a191933_list = findIndices (> 0) $ map a193095 [0..]
-- Reinhard Zumkeller, Jul 17 2011
CROSSREFS
KEYWORD
nonn,base,easy
AUTHOR
Klaus Brockhaus, Jun 19 2011
STATUS
approved