login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A163599
The smallest pronic (A002378) with the same most significant digits as n.
1
12, 2, 30, 42, 56, 6, 72, 812, 90, 1056, 110, 12, 132, 1406, 156, 1640, 1722, 182, 1980, 20, 210, 2256, 2352, 240, 2550, 2652, 272, 2862, 2970, 30, 3192, 32220, 3306, 342, 3540, 3660, 3782, 380, 3906, 4032, 4160, 42, 43056, 4422, 4556, 462, 47306, 4830
OFFSET
1,1
LINKS
MAPLE
A002378 := proc(n) n*(n+1) ; end:
A163599 := proc(n) ndgs := convert(n, base, 10) ; for i from 1 do wrks := true ; prd := convert( A002378(i), base, 10) ; for d from 1 to nops(ndgs) do if op(-d, ndgs) <> op(-d, prd) then wrks := false; break; fi; od: if wrks then RETURN( A002378(i) ) ; fi; od: end:
seq(A163599(n), n=1..80) ; # R. J. Mathar, Aug 07 2009
PROG
(Python)
from sympy import isprime
def a(n):
s, k = str(n), 1
while not str(k*(k+1)).startswith(s): k += 1
return k*(k+1)
print([a(n) for n in range(1, 49)]) # Michael S. Branicky, Dec 02 2021
CROSSREFS
Sequence in context: A335043 A360287 A040143 * A334700 A302799 A213059
KEYWORD
nonn,base
AUTHOR
Claudio Meller, Aug 01 2009
STATUS
approved