Martin Rubey wrote:
> 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...
>
Not high priority, but since it is almost done we should add it.
However, 2 and 4 need extra handling.
--
Waldek Hebisch
[email protected]
--
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.