OFFSET
1,3
EXAMPLE
a(7) = 35 because last digit of 35 is 5 and 7*5 = 35, and there is no number < 35 that satisfies the condition.
MAPLE
with(numtheory):for k from 1 to 100 do:id:=0:for n from 1 to 2000 while(id=0)
do:x:=irem(n, 10):if n=k*x then n0:=n:id:=1:else fi:od:if id=1 then printf(`%d,
`, n0):else printf(`%d, `, 0):fi:od:
PROG
(Magma) A186436:=function(n); for j in [1..9] do a:=n*j; if j eq Intseq(a)[1] then return a; end if; end for; return 0; end function; [ A186436(n): n in [1..100] ]; // Klaus Brockhaus, Feb 22 2011
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Michel Lagneau, Feb 21 2011
STATUS
approved