FLINT3.7.0-dev

dlog_bsgs_clear, dlog_bsgs

Synopsis#include <flint/dlog.h>
void dlog_bsgs_clear(dlog_bsgs_t t)source
ulong dlog_bsgs(const dlog_bsgs_t t, ulong b)source

Free the table, and return \log_a(b) by multiplying b by a^{-m} until the product is found in the table (by binary search). Throws if b is not a power of a.

Cite this page

The FLINT team, “dlog_bsgs_clear, dlog_bsgs (dlog.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/dlog/dlog_bsgs_clear.html (generated 2026-10-20).