1998 AMC 12 Problem 30

Attempt Problem 30 of the 1998 AMC 12 below, then check your answer against the professionally curated solution from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 1998 AMC 12 solutions, or check the answer key.

All problems are used with official legal permission of the Mathematical Association of America (MAA).

30.

For each positive integer n,n, let an=(n+9)!(n1)!. a_n=\frac{(n+9)!}{(n-1)!}. Let kk denote the smallest positive integer for which the rightmost nonzero digit of aka_k is odd. The rightmost nonzero digit of aka_k is

11

33

55

77

99

Answer: E
Concepts:prime valuationstrailing digitsmodular arithmetic
Difficulty rating: 2630
Small Hint:

Write an=n(n+1)(n+9)a_n=n(n+1)\cdots(n+9) and compare its powers of 22 and 55

Big Hint:

An odd rightmost nonzero digit first becomes possible when the ten-term block contains 575^7

Solution:

The five even terms in any ten consecutive integers contribute at least 28.2^8. Thus the rightmost nonzero digit can be odd only when the block contains at least eight factors of 5,5, first possible when it contains 57=78125.5^7=78125. For n=579,n=5^7-9, the block has v2=9v_2=9 and v5=8,v_5=8, so the digit remains even. For n=578=78117,n=5^7-8=78117, both valuations are 8.8. Cancelling 28582^8 5^8 and multiplying the remaining odd unit digits gives 7913931139(mod10). \begin{aligned} &7\cdot9\cdot1\cdot3\cdot9\cdot3\\ &\qquad\cdot1\cdot1\cdot3 \equiv9\pmod{10}. \end{aligned} Hence the first odd rightmost nonzero digit is 9,9, and E is correct.

← Problem 29#29
Full Exam

Problem 30 in Other Years

1950 AMC 12 · 1951 AMC 12 · 1952 AMC 12 · 1953 AMC 12 · 1954 AMC 12 · 1955 AMC 12 · 1956 AMC 12 · 1957 AMC 12 · 1958 AMC 12 · 1959 AMC 12 · 1960 AMC 12 · 1961 AMC 12 · 1962 AMC 12 · 1963 AMC 12 · 1964 AMC 12 · 1965 AMC 12 · 1966 AMC 12 · 1967 AMC 12 · 1968 AMC 12 · 1969 AMC 12 · 1970 AMC 12 · 1971 AMC 12 · 1972 AMC 12 · 1973 AMC 12 · 1974 AMC 12 · 1975 AMC 12 · 1976 AMC 12 · 1977 AMC 12 · 1978 AMC 12 · 1979 AMC 12 · 1980 AMC 12 · 1981 AMC 12 · 1982 AMC 12 · 1983 AMC 12 · 1984 AMC 12 · 1985 AMC 12 · 1986 AMC 12 · 1987 AMC 12 · 1988 AMC 12 · 1989 AMC 12 · 1990 AMC 12 · 1991 AMC 12 · 1992 AMC 12 · 1993 AMC 12 · 1994 AMC 12 · 1995 AMC 12 · 1996 AMC 12 · 1997 AMC 12 · 1999 AMC 12