主題
Search

偶數部分


EvenPart

正整數 n 的偶數部分 Ev(n) 定義為

 Ev(n)=2^(b(n)),

其中 b(n) 是 2 的精確冪的指數,它整除 n。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]

另請參閱

最大整除指數, 奇數部分

使用 探索

參考文獻

Sloane, N. J. A. Sequence A006519/M0162 in "The On-Line Encyclopedia of Integer Sequences."

在 中引用

偶數部分

請引用為

Weisstein, Eric W. "偶數部分。" 來自 Web 資源。 https://mathworld.tw/EvenPart.html

主題分類