login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A162701 Numbers k which are concatenations k = x//y such that x^2 - y^2 is a multiple of k. 0

%I #7 Mar 01 2019 23:34:09

%S 147,528,729,1617,8019,13467,71289,91091,130896,310497,350268,970299,

%T 1010100,1016127,1034187,1140399,1190475,1216512,1300624,1334667,

%U 1360167,1416767,1484847,1530900,2020200,2032254,2068374,2280798

%N Numbers k which are concatenations k = x//y such that x^2 - y^2 is a multiple of k.

%C Cases in which y has leading zeros or y >= x are not considered.

%e 147 = 14//7, 14^2 - 7^2 = 1*147;

%e 528 = 52//8, 52^2 - 8^2 = 5*528;

%e 729 = 72//9, 72^2 - 9^2 = 7*729.

%p Lton := proc(L) add( op(i,L)*10^(i-1),i=1..nops(L)) ; end:

%p for n from 10 do dgs := convert(n,base,10) ; for spli from 1 to nops(dgs)-1 do ydgs := [op(1..spli,dgs)] ; xdgs := [op(spli+1..nops(dgs),dgs)] ;

%p if op(-1,ydgs) <> 0 then x := Lton(xdgs) ; y := Lton(ydgs) ; if x > y then if (x^2-y^2) mod n = 0 then print(n) ; fi; fi; fi;

%p od: od: # _R. J. Mathar_, Jul 16 2009

%Y Cf. A162700.

%K nonn,base

%O 1,1

%A _Claudio Meller_, Jul 11 2009

%E keyword:base added, definition rephrased, 3 terms added by _R. J. Mathar_, Jul 16 2009

%E More terms from _Sean A. Irvine_, Apr 15 2010

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)