Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. [9 marks] Primes/Composites Notice that 2,5,11,17,23, and 29 are all primes, and are all congruent to 2 (mod 3), that is each of them

image text in transcribed

image text in transcribed

image text in transcribed

2. [9 marks] Primes/Composites Notice that 2,5,11,17,23, and 29 are all primes, and are all congruent to 2 (mod 3), that is each of them leaves a remainder of 2 when divided by 3. You may use the following predicates in this question: d n:3kEZ, n-dk, where d, n ? z Prime(p) : p > 1 ? Vde N, d l p d-1 v d-p, where p E N Composite(n) : 3d ? N, d > 1 ? d 1 ? Vde N, d l p d-1 v d-p, where p E N Composite(n) : 3d ? N, d > 1 ? d

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database In Depth Relational Theory For Practitioners

Authors: C.J. Date

1st Edition

0596100124, 978-0596100124

More Books

Students also viewed these Databases questions