Whad'ya mean?

There is a sequence of numbers: 7,97,997,9997,99997,999997......7,97,997,9997,99997,999997 ...... Find the tenth term of this number which is not a prime.

#NumberTheory

Note by Bryan Lee Shi Yang
6 years, 3 months ago

No vote yet
1 vote

  Easy Math Editor

This discussion board is a place to discuss our Daily Challenges and the math and science related to those challenges. Explanations are more than just a solution — they should explain the steps and thinking strategies that you used to obtain the solution. Comments should further the discussion of math and science.

When posting on Brilliant:

  • Use the emojis to react to an explanation, whether you're congratulating a job well done , or just really confused .
  • Ask specific questions about the challenge or the steps in somebody's explanation. Well-posed questions can add a lot to the discussion, but posting "I don't understand!" doesn't help anyone.
  • Try to contribute something new to the discussion, whether it is an extension, generalization or other idea related to the challenge.
  • Stay on topic — we're all here to learn more about math and science, not to hear about your favorite get-rich-quick scheme or current world events.

MarkdownAppears as
*italics* or _italics_ italics
**bold** or __bold__ bold

- bulleted
- list

  • bulleted
  • list

1. numbered
2. list

  1. numbered
  2. list
Note: you must add a full line of space before and after lists for them to show up correctly
paragraph 1

paragraph 2

paragraph 1

paragraph 2

[example link](https://brilliant.org)example link
> This is a quote
This is a quote
    # I indented these lines
    # 4 spaces, and now they show
    # up as a code block.

    print "hello world"
# I indented these lines
# 4 spaces, and now they show
# up as a code block.

print "hello world"
MathAppears as
Remember to wrap math in \( ... \) or \[ ... \] to ensure proper formatting.
2 \times 3 2×3 2 \times 3
2^{34} 234 2^{34}
a_{i-1} ai1 a_{i-1}
\frac{2}{3} 23 \frac{2}{3}
\sqrt{2} 2 \sqrt{2}
\sum_{i=1}^3 i=13 \sum_{i=1}^3
\sin \theta sinθ \sin \theta
\boxed{123} 123 \boxed{123}

Comments

Since it is obviously not an infinite sequence of primes, it should be fastest to check the first few terms.

9997=13×7699997 = 13\times 769

Edit 1: By Fermat's Little Theorem, if 99979997 is prime, then 299972 (mod 9997).2^{9997} \equiv 2\ (\text{mod } 9997). But 29997 mod 9997=8192.2^{9997} \text{ mod } 9997 = 8192. You can check this with an exponential expansion of 29997,2^{9997}, or with Euler's theorem; both are tedious. In the words of Fermat himself, I would provide the proof, if I were not afraid to be too long.

Edit 2: the note now asks for the tenth composite in the sequence; I have a Java solution which shows it to be 99999999999979999999999997 (term 1313, implying there are at least 99 more consecutive composites after the first) but proving this seems extremely tedious as I am only familiar with FLT and Euler's theorem. Does anyone have an idea? I know there is at least one more prime in the sequence, for example term 17.17.

Caleb Townsend - 6 years, 3 months ago

Log in to reply

By inspection?

Yogesh Verma - 6 years, 3 months ago

Log in to reply

Yes, it is by far the fastest way to solve this problem, but I have added a FLT solution.

Caleb Townsend - 6 years, 3 months ago

Eg if 999999....999997 (n 9's) is the first term which is not a prime factor, then that term is n+1n+1.

Bryan Lee Shi Yang - 6 years, 3 months ago

Note edited, sorry.

Bryan Lee Shi Yang - 6 years, 3 months ago
×

Problem Loading...

Note Loading...

Set Loading...