The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
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!)
A083466 Smallest nontrivial multiple of n ending in n. By nontrivial one means a(n) is not equal to n or concatenation of n with itself. 1

%I #5 Aug 23 2014 15:06:40

%S 21,12,63,24,15,36,147,48,189,110,2211,312,2613,714,315,416,3417,918,

%T 3819,120,4221,1122,4623,624,125,1326,5427,728,5829,330,6231,832,6633,

%U 1734,735,936,7437,1938,7839,240,8241,2142,8643,1144,945

%N Smallest nontrivial multiple of n ending in n. By nontrivial one means a(n) is not equal to n or concatenation of n with itself.

%p A083466 := proc(n)

%p ndgs := convert(n,base,10) ;

%p for k from 2 do

%p if k*n <> digcat2(n,n) then

%p kdgs := convert(k*n,base,10) ;

%p mtch := true ;

%p for i from 1 to nops(ndgs) do

%p if op(i,ndgs) <> op(i,kdgs) then

%p mtch := false;

%p break;

%p end if;

%p end do:

%p if mtch then

%p return k*n ;

%p end if;

%p end if;

%p end do:

%p end proc: # _R. J. Mathar_, Aug 23 2014

%K base,easy,nonn

%O 1,1

%A _Amarnath Murthy_ and Meenakshi Srikanth (menakan_s(AT)yahoo.com), May 02 2003

%E More terms from _R. J. Mathar_, Aug 23 2014

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 May 23 00:54 EDT 2024. Contains 372758 sequences. (Running on oeis4.)