Menu
CLCompetitive ProgrammingRoadmapContestsToolsBlog
GitHub
๐ŸŒœ
๐ŸŒž
CLCompetitive Programming
  • Roadmap
  • Contests
  • Tools
  • Blog
  • GitHub
  • Basics
    • Learn C++
    • Time and Space Complexity
    • Some other important things
  • STL
    • STL Tutorials
    • Practice Problems for STL
    • Editorials to STL practice problems
    • Implementation and Regular Contests
  • Number Theory
    • Number Theory Tutorials
    • Practice Problems for Number Theory
  • Binary Search
    • Binary Search Tutorials
    • Practice Problems for Binary Search
  • Graph Theory
    • Graph Theory Tutorials
    • Practice Problems for Graph Theory
  • Programming Techniques
    • Greedy Tutorials
    • DP Tutorials
    • Practice Problems
  • Advanced
    • DP on Graphs
    • DP with Bitmasks

Number Theory Tutorials

Go through these tutorials, in order :

  1. Hackerearth tutorial for primes, composites, sieve of erasthones, segmented sieve

  2. Read upto "pre-computed primes method", from this article on factorisation

  3. Number of divisors and Sum of divisors

note

Similarly, also remember the formula for product of divisors of a number nnn :

nd(n)2n^{\frac{d(n)}{2}}n2d(n)โ€‹

where d(n)d(n)d(n) = number of divisors of nnn

  1. Hackerearth tutorial on modular arithmetic, GCD, modular exponentiation and Fermat's Theorem

  2. CP-algorithms Tutorial for Euler Totient Function (ETF), its properties and applications

  3. Hackerearth tutorial for ETF

Additional Resources#

  • Revise Permutations and Combinations
Edit this page
Previous
ยซ Implementation and Regular Contests
Next
Practice Problems for Number Theory ยป
  • Additional Resources

Roadmap

  • Basics
  • STL
  • Number Theory
  • Binary Search
  • Graph Theory
  • Programming Techniques

Important Tools

  • Coding Schedule
  • OEIS
  • CP Editor
  • Diff Checker
  • CSAcademy online IDE
  • VisuAlgo
  • Algorithm Visualizer

More

  • Blog
  • Contests
  • GitHub
Copyright ยฉ 2020 Cyber Labs. All Rights Reserved.