Social Icons

Python Arithmetic Exercises With Solutions For High School Grade 12

Exercise 750|| Solution

For each natural number n, we set: Sn = 1 + 2 + 3 + ... + n. Write a Python algorithm that finds the integer n for a given Sn. Example if Sn = 10 then n = 4 since 1 + 2 + 3 + 4 = 10.

Exercise 751 || Solution

Write a program in Python that finds the smallest divisor strictly greater than 1 of a given positive integer n.

Exercise 752 || Solution

Write a program in Python that searches for the greatest divisor strictly less than a given positive integer n. Example for n = 18 the greatest divisor of n is 9.

Exercise 753 || Solution

Write a python algorithm as a function which takes as argument a positive integer n and returns the list of all the tuples (u, v) of integers such that: u2 + v2 <= n.

Exercise 754 || Solution

Write a Python algorithm as a function that takes an integer n as argument and returns the smallest prime integer greater than or equal to n. Example for n = 8, the function returns the smallest prime number greater than or equal to 8 which is 11.

Exercise 755 || solution

Write a Python algorithm as a function which takes as argument an integer n and which returns the list of all the prime integers contained in the interval [n, 2n] Example for n = 9, the function returns the list of the all prim numbers contained in the interval [9, 18] which is L = [11, 13, 17].

Exercise 756 || Solution

Write a Python algorithm as a function that takes an integer n as argument and returns the largest prime integer less than or equal to n. Example for n = 15, the function returns the largest prime number less than or equal to 15 which is 13.

Exercise 757 || Solution

Given a non-zero natural integer n, write a python algorithm as function which determines the remainder in the Euclidean division of the sum of the first n integers by n.

Exercise 758 || Solution

Write a python algorithm as a function that takes as argument a pair of integers (d, s) and returns a list of all the couple who determine the list of all pairs of integers (m, n) of greatest common divisor GCD(m, n) = d and of sum m + n = s     (*)

Exercise 759 || Solution

Write a python algorithm as a function which takes as parameters two integers m and n which returns the list of all the divisors common to m and n.

Exercise 760 || Solution

Write an algorithm in python as a function that finds the list of all prime divisors of a given integer n.

Exercise 761 || Solution

Write an algorithm in python as a function which takes as parameters an integer n and which returns the list of integers tuples (p, q) such that p and q are prime between them and p + q less than or equal to n.

Exercise 762 || Solution

Write a Python program as a function which takes an integer n as a parameter and which returns the sum of all divisors of n.

Exercise 763 || Solution

Write a python algorithm as function which take as argument an integer n and return the list of all tuples (p , q) of positive integers p and q shch that the Euclidean division of p by q gives 3 as the quotient and 2 as the remainder.

Exercise 764 || Solution

Write a python algorithm as function which takes as parameter an integer n and which returns the remainder in the Euclidean division by n of the sum of the first n integers Sn = 1 + 2 + 3 + ... + n

Exercise 765 || Solution

1 - Write a python algorithm as function which takes as parameter an integer n and which returns the tuple (n! , Sn) where n! = 1x2x3x...xn and Sn = 1 + 2 + 3 + ... + n.
2 - Write a python algorithm as function which takes as parameter an integer n and return the quotient and remainder in euclidean division of n! by Sn.



Younes Derfoufi
my-courses.net

No comments:

Post a Comment

Category Of Mobile Courses

Actualités (644) Adsense (1) Affiliation (1) Algebraic Topology (2) Algorithmic (1) all-news (30) Android (5) Android App (8) Android app without code (4) Android Apps (256) Android Development (4) Android download (2) Android OS (3) AngularJS (1) Automata theory and formal language (5) C programming (5) Category and Functor (8) CMS (3) Computer Glossary (18) Create Mobile App With Ionic Framework (2) CSS (2) CSS-Cascading-Style-Sheets (4) Developpement Java (13) Differential Geometry (1) Django-Python-Framework (9) dropshiping (26) Earn Money by Internet (4) Emplois (23) Framework php (2) Fraud (2) HTML (7) Java For Beginners (10) Javascript (12) Kotlin Programming Language (8) Kotlin For Mobile Android (1) Linux Download (2) Marketing (5) Mobile (3) Mobile Courses (4) Mobile Marketing (4) MoneyGram (1) News (721) Node.js (5) Open Source (1) Photoshop (1) Protect Computer (1) Python (35) Python BeautifulSoup (1) Python For Data Science (2) Python PyQt (4) Python Reference (1) Python-Books (6) Python-DVD-Training (1) Python-Exercises (231) Python-Framework (1) Python-IDE (1) Python-Kivy-Framework (2) Python-Modules (1) Python-pdf (2) Python-pyQt (1) Référencement (2) Script PHP (2) Security (6) SEO (1) Snipping Tool: Faq (1) Social Networks (1) Source Code (1) Statistics With SPSS (2) Surveillance Software (1) Travail à domicile (6) Tutoriels php en vidéos (2) Tutoriels-MySql (6) tutoriels-php (19) Utilitaires (1) VPS (1) Web Hosting (1) Webcam (1) Webmarketing (11) Western Union (1) Windows 10 (1) Windows 7 (4) Windows 7 Faq (2) Windows 8 (1) Windows Accessories (1) Windows Download (8) Windows Drivers (1) Windows Fonts (1) Windows Power Shell (2) Windows Registry (2) Windows Security (18) Windows Software (2) Windows Spyware (2) Windows utilities (3) Windows Virus (2) Windows Vista (3) Windows Wireless (1) Windows xp (1) Wordpress (1)
 

Sample text

Sample Text

 
Blogger Templates