OFFSET
1,7
COMMENTS
LINKS
T. D. Noe, Table of n, a(n) for n=1..1000
MAPLE
A084680 := proc(n) if gcd(n, 10) <> 1 then 0 ; elif n = 1 then 1 ; else numtheory[order](10, n) ; end if; end proc: seq(A084680(n), n=2..100) ; # R. J. Mathar, Mar 10 2010
MATHEMATICA
a[n_] := If[!CoprimeQ[n, 10], 0, MultiplicativeOrder[10, n]]; Table[a[n], {n, 1, 100}] (* Jean-François Alcover, Nov 07 2012 *)
PROG
(PARI) a(n, b=10)=if(gcd(n, b)!=1, 0, znorder(Mod(b, n)));
vector(66, n, a(n)) \\ Joerg Arndt, Nov 15 2014
(GAP) List([1..100], n->OrderMod(10, n)); # Muniru A Asiru, Feb 26 2019
CROSSREFS
KEYWORD
nonn
AUTHOR
Lekraj Beedassy, Jun 30 2003
EXTENSIONS
More terms from John W. Layman, Aug 12 2003
STATUS
approved