10 #ifndef PROGS_SRC_COMMON_SIGMAODD_SIGMAODD_HPP_ 11 #define PROGS_SRC_COMMON_SIGMAODD_SIGMAODD_HPP_ 81 print_path(
const std::vector<nat_type> &path, std::ostream &out = std::cout);
94 print_path(
const std::vector<nat_type>::const_iterator &path_begin,
95 const std::vector<nat_type>::const_iterator &path_end,
96 std::ostream &out = std::cout);
138 bool print_bad =
true,
139 bool print_all =
false,
140 bool print_category =
true,
141 bool print_lower =
true,
142 bool print_length =
true,
144 std::ostream &out = std::cout);
281 std::pair<nat_type, unsigned int>
291 std::pair<nat_type, unsigned int>
302 std::pair<nat_type, unsigned int>
312 std::pair<nat_type, unsigned int>
344 #endif // PROGS_SRC_COMMON_SIGMAODD_SIGMAODD_HPP_ unsigned long nat_type
Type for natural number used in all code, on 64 bits.
void print_path_infos(const std::vector< nat_type > &path, bool print_bad, bool print_all, bool print_category, bool print_lower, bool print_length, bool print_path, std::ostream &out)
Send (if the below condition is true) to the stream a string representation of the path with some inf...
std::pair< nat_type, unsigned int > sum_odd_divisors_divided_until_odd_iterate_until_lower__factorize(nat_type n)
Iterates the sum_odd_divisors_divided_until_odd__factorize() function from n until have a result lowe...
void print_sigmaodd__naive(nat_type first, nat_type last, bool print_only_longer, bool print_path)
Iterate from first to last (included) and print result of the sum_odd_divisors_divided_until_odd_iter...
std::pair< nat_type, unsigned int > sum_odd_divisors_divided_until_odd_iterate_until_lower__factorize_bound(nat_type n)
Iterates the sum_odd_divisors_divided_until_odd__factorize() function from n until have a result lowe...
nat_type sum_odd_divisors_divided_until_odd__factorize(nat_type n, bool skip_primes_table)
Calculates the sum of all odd divisors of n by the factorization method, divides the results by 2 unt...
void print_sigmaodd__factorize_bound(nat_type first, nat_type last, bool print_only_longer, bool print_path)
Iterate from first to last (included) and print result of the sum_odd_divisors_divided_until_odd_iter...
std::pair< nat_type, unsigned int > sum_odd_divisors_divided_until_odd_iterate_until_lower__euler(nat_type n)
Iterates the sum_odd_divisors_divided_until_odd__euler() function from n until have a result lower th...
A lot of functions and stuffs to deal the sigma_odd problem and related stuffs.
void print_square(nat_type first, nat_type last, bool print_path)
nat_type varsum_odd(nat_type n)
Calculates the sum of all odd divisors of n by the factorization method, divides the results by 2 unt...
void check_varsigma_odd(nat_type first_n, nat_type last_n)
Iterate from first to last (included) and for each odd n such that is_little_mersenne_prime_unitary_d...
std::pair< nat_type, unsigned int > sum_odd_divisors_divided_until_odd_iterate_until_lower__naive(nat_type n)
Iterates the sum_odd_divisors_divided_until_odd__naive() function from n until have a result lower th...
nat_type sum_odd_divisors_divided_until_odd__naive(nat_type n)
Calculates the sum of all odd divisors of n by the naive method, divides the results by 2 until becom...
void print_long(nat_type first, nat_type last, bool print_path)
Iterate from first to last (included) and for each odd n not square such that is_little_mersenne_prim...
void print_sigmaodd__factorize(nat_type first, nat_type last, bool print_only_longer, bool print_path)
Iterate from first to last (included) and print result of the sum_odd_divisors_divided_until_odd_iter...
nat_type sum_odd_divisors_divided_until_odd__factorize_bound(nat_type n, nat_type start_n)
Calculates the sum of all odd divisors of n by the factorization method, divides the results by 2 unt...
void print_path(const std::vector< nat_type > &path, std::ostream &out)
Send to the stream a string representation of the path. All numbers are separated by the correspondin...
nat_type varsum_odd_big(nat_type n, nat_type sqrt_n)
Calculates the sum of all odd divisors of n by the factorization method, divides the results by 2 unt...
Functions in link with divisor notion: sum of divisors, factorization, GCD, coprime, ...
nat_type sum_odd_divisors_divided_until_odd__euler(nat_type n)
Calculates the sum of all odd divisors of n by the Euler formula method, divides the results by 2 unt...
std::string path_to_string(const std::vector< nat_type > &path)