OFFSET
3,1
COMMENTS
a(n) is the smallest integer of the form x*(n^d-1)/(2n-1) for integer x and d, where 1 < x < n and d > 1. x is the last digit and d is the number of digits of a(n) in base n. - Pontus von Brömssen, Jan 06 2019
LINKS
Pontus von Brömssen, Table of n, a(n) for n = 3..221
EXAMPLE
a(10) = 105263157894736842 because 2*105263157894736842 = 210526315789473684 and no smaller number has this property. (Leading zeros are not allowed, otherwise 2*052631578947368421 = 105263157894736842 would be a smaller solution.)
MAPLE
A087502 := proc(n) local d, a; d := 1; a := n; while a>=n do d := d+1; a := denom((2^d-1)/(2*n-1)); od; return(max(2, a)*(n^d-1)/(2*n-1)); end proc;
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Pontus von Brömssen, Sep 10 2003
STATUS
approved