OFFSET
1,3
COMMENTS
This is an example to show how a sequence can be constructed to converge to an arbitrary p-adic number chosen independently for each p.
LINKS
Jinyuan Wang, Table of n, a(n) for n = 1..450
FORMULA
EXAMPLE
5! = 2^3 * 3 * 5. Solving for m == 1 (mod 2^3), 0 (mod 3) and 0 (mod 5), we get m == 105 (mod 120), so we take a(5) = 105.
The factorial base representation is ...114111.
PROG
(PARI) a(n)=lift(chinese(Mod(1, denominator(polcoeff(pollegendre(n), n))), Mod(0, denominator(2^n/n!)))) /* Ralf Stephan, Aug 01 2013 */
CROSSREFS
KEYWORD
nonn
AUTHOR
Franklin T. Adams-Watters, Jul 30 2013
EXTENSIONS
More terms from Ralf Stephan, Aug 01 2013
More terms from Jinyuan Wang, Jan 16 2021
STATUS
approved