Skip to content

nicehorse06/sequence-extender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sequence Extender

  • 建議用Python3

功能

  • 依據使用者輸入的前幾項數字來判斷為何數列,並擴展後面十項
  • 附有物件的單元測試

使用

執行Sequence Extender

  • python main.py

把輸入放在input.txt,再執行Sequence Extender

  • cat input.txt | python main.py

執行Sequnce物件的測試:

  • python test_sequence.py

完成的數列(檢查與建造)

  • 等差數列 arithmetic sequence
  • 等比數列 geometric sequence
  • 費氏數列 fibonacci sequence
  • 多次方數列
    • 目前只有二次方,1 4 9 16 25
  • 多階等差數列遞增加數列
    • (遞加為10 20 40 80)
    • 4 14 34 74 154 3314 634 1274 2554 5114 10234 20474 (等比)
    • 1 2 4 7 為等差

todo數列

  • 分群数列
    • 1 2 2 3 3 3 4 4 4 4
  • 質數數列
  • 水仙花數列
  • 階乘數列
    • n!

ref

  • oeis 數列檢查網

About

This project can recognize sequence by input and generate next 10 integers in line

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages