正整數 的偶數部分
定義為
其中 是 2 的精確冪的指數,它整除
。n=1, 2, ... 的值為 1, 2, 1, 4, 1, 2, 1, 8, 1, 2, 1, ... (OEIS A006519)。偶數部分函式可以在 Wolfram 語言中實現為
EvenPart[0]:=1 EvenPart[n_Integer]:=2^IntegerExponent[n,2]
正整數 的偶數部分
定義為
其中 是 2 的精確冪的指數,它整除
。n=1, 2, ... 的值為 1, 2, 1, 4, 1, 2, 1, 8, 1, 2, 1, ... (OEIS A006519)。偶數部分函式可以在 Wolfram 語言中實現為
EvenPart[0]:=1 EvenPart[n_Integer]:=2^IntegerExponent[n,2]
Weisstein, Eric W. "偶數部分。" 來自 Web 資源。 https://mathworld.tw/EvenPart.html