+0

# Base Number Arithmetic

+1
271
1
+164

Suppose that p is prime and $$1007_p+306_p+113_p+125_p+6_p=142_p+271_p+360_p$$. How many possible values of  p are there?

Mar 28, 2018

#1
+22569
+1

Suppose that p is prime and

$$1007_p+306_p+113_p+125_p+6_p=142_p+271_p+360_p.$$

1007_p+306_p+113_p+125_p+6_p=142_p+271_p+360_p.

How many possible values of  p are there?

$$\small{ \begin{array}{|rcll|} \hline 1007_p+306_p+113_p+125_p+6_p &=& 142_p+271_p+360_p \\\\ \underbrace{p^3+7}_{=1007_p}+\underbrace{3p^2+6}_{=306_p}+ \underbrace{p^2+p+3}_{=113_p} + \underbrace{p^2+2p+5}_{=125_p} +\underbrace{6}_{=6_p} &=& \underbrace{p^2+4p+2}_{=142_p}+ \underbrace{2p^2+7p+1}_{=271_p} + \underbrace{3p^2+6p}_{=360_p} \\ p^3+ 3p^2+ p^2+ p^2 +p +2p+7 +6 +3 +5 + 6 &=& p^2+ 2p^2+ 3p^2 +4p+ 7p+6p +2 + 1 \\ p^3+ 5p^2+3p +27 &=& 6p^2 +17p +3 \\ p^3+ 5p^2-6p^2+3p-17p +27-3 &=& 0 \\ p^3-p^2-14p +24 &=& 0 \\ (p-2)(p^2+p-12) &=& 0 \\ (p-2)(p-3)(p+4) &=& 0 \\ \hline \end{array} }$$

The only primes that will work are $$p=2$$ or $$p=3$$

Mar 28, 2018
edited by heureka  Mar 28, 2018
{"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 1, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "url": "https://web2.0calc.com/questions/base-number-arithmetic", "fetch_time": 1563823414000000000, "content_mime_type": "text/html", "warc_filename": "crawl-data/CC-MAIN-2019-30/segments/1563195528208.76/warc/CC-MAIN-20190722180254-20190722202254-00219.warc.gz", "warc_record_offset": 564896106, "warc_record_length": 6117, "token_count": 555, "char_count": 1068, "score": 4.0625, "int_score": 4, "crawl": "CC-MAIN-2019-30", "snapshot_type": "latest", "language": "en", "language_score": 0.6189375519752502, "file_path": "/sailhome/yjruan/project/latent-lm/data/processed/finemath-4plus/finemath-4plus/train-00006-of-00064.parquet"}