12 #ifndef PROGS_SRC_SEQUENTIAL_SEQUENTIAL_SEQUENTIAL_HPP_ 13 #define PROGS_SRC_SEQUENTIAL_SEQUENTIAL_SEQUENTIAL_HPP_ 20 #include "../../common/sigmaodd/helper.hpp" 21 #include "../../common/sigmaodd/primes.hpp" 55 bool print_bad =
true);
81 const std::set<nat_type> &bad_table,
83 bool print_bad =
true);
125 bool print_bad =
true,
126 bool print_all =
false,
127 bool print_category =
true,
128 bool print_lower =
true,
129 bool print_length =
true,
148 bool print_lower =
true,
149 bool print_length =
true,
194 bool check_useless =
false,
195 bool print_bad =
true,
196 bool print_all =
false,
197 bool print_category =
true,
198 bool print_lower =
true,
199 bool print_length =
true,
218 bool print_lower =
true,
219 bool print_length =
true,
234 const std::set<nat_type> &bad_table,
250 const std::set<nat_type> &bad_table,
268 std::vector<nat_type>
280 std::vector<nat_type>
298 std::vector<nat_type>
310 std::vector<nat_type>
329 std::vector<nat_type>
371 const std::set<nat_type> &bad_table,
389 const std::set<nat_type> &bad_table,
408 const std::set<nat_type> &bad_table,
427 const std::set<nat_type> &bad_table,
448 const std::set<nat_type> &bad_table,
456 #endif // PROGS_SRC_SEQUENTIAL_SEQUENTIAL_SEQUENTIAL_HPP_ std::vector< nat_type > sequential_print_in_order(const std::set< nat_type > &ns)
Print number from ns, in increasing order and return a list of these number in the same order...
std::set< nat_type > sequential_check_gentle_varsigma_odd(nat_type first_n, nat_type last_n, bool print_bad)
Check in the order all odd gentle numbers between first_n and last_n, and if print_bad then print all...
void sequential_check_varsigma_odd_perfect_square(nat_type n, bool print, bool print_lower, bool print_length, bool print_path)
Return sequential_check_varsigma_odd(), but only for n perfect square.
uint64_t nat_type
Type for natural number used in all code, on 64 bits.
sigmaodd::nat_type nat_type
sigmaodd::prime_type prime_type
std::vector< nat_type > sequential_iterate_varsigma_odd_perfect_square_until_1(nat_type start_n)
Return sequential_iterate_varsigma_odd_until_1(), but only for n perfect square.
std::vector< nat_type > sequential_iterate_varsigma_odd_until_lower(nat_type start_n)
Iterate sequential_varsigma_odd(start_n) until to be have a result < start_n. Return this partial pat...
void sequential_check_varsigma_odd_complete(nat_type first_n, nat_type last_n, bool check_useless, bool print_bad, bool print_all, bool print_category, bool print_lower, bool print_length, bool print_path)
Check completely (until 1) in the order all odd numbers between first_n and last_n. The consequence of the result is that: all odd numbers checked between first_n and last_n (included) respect the conjecture.
bool sequential_is_varsigma_odd_lower(nat_type n, const std::set< nat_type > &bad_table, nat_type bad_first_n)
Return true iff varsigma_odd(n) < n.
uint32_t prime_type
Type for prime number, particularly for the table of primes.
std::set< nat_type > sequential_varsigma_odd_greater_set(const std::vector< nat_type > &ns, const std::set< nat_type > &bad_table, nat_type bad_first_n, nat_type bad_last_n)
Return the set of n from ns such that varsigma_odd(n) > n.
constexpr nat_type sequential_sigma_odd_upper_bound(nat_type n, const std::set< nat_type > &bad_table, nat_type bad_first_n)
Return an upper bound of varsigma_odd(n).
constexpr nat_type sequential_min_array(const nat_type ns[], size_t size)
Return the minimum of the first size values of ns.
nat_type sequential_varsigma_odd_perfect_square(nat_type n)
Return sequential_varsigma_odd(), but only for n perfect square.
void sequential_check_varsigma_odd_perfect_square_complete(nat_type n, bool print, bool print_lower, bool print_length, bool print_path)
Return sequential_check_varsigma_odd_complete(), but only for n perfect square.
constexpr nat_type sequential_sigma_odd_upper_bound_with_sqrt(nat_type n, const std::set< nat_type > &bad_table, nat_type bad_first_n, nat_type sqrt_n)
Return an upper bound of varsigma_odd(n).
std::vector< nat_type > sequential_iterate_varsigma_odd_until_1(nat_type start_n)
Iterate sequential_varsigma_odd(start_n) until to reach 1. Return this complete path.
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...
std::vector< nat_type > sequential_iterate_varsigma_odd_perfect_square_until_lower(nat_type start_n)
Return sequential_iterate_varsigma_odd_until_lower(), but only for n perfect square.
nat_type sequential_varsigma_odd(nat_type n)
Return varsigma_odd(n), i.e. the sum of all odd divisors of n, divided by 2 until to be odd...
void sequential_check_varsigma_odd(nat_type first_n, nat_type last_n, bool print_bad, bool print_all, bool print_category, bool print_lower, bool print_length, bool print_path)
Check in the order all odd numbers between first_n and last_n. The consequence of the result is that:...