anybody for including carmichaelLambda
http://en.wikipedia.org/wiki/Carmichael_function
http://www.research.att.com/~njas/sequences/A002322
into IntegerNumberTheoryFunctions?
Something like
CarmichaelLambda(n: Integer): Integer ==
lcm [(if pk.factor >= 3 or pk.exponent <= 2 then _
(pk.factor)^(pk.exponent-1)*(pk.factor-1) _
else 2^(pk.exponent-2))::Integer
for pk in factors factor n]
works at least in the interpreter...
Martin
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en.