Sharps appearance in order:
[NONE,F#,C#,G#,D#,A#,E#,B#]
Names of the key signature in order (match them to the order of ths sharp appearance):
[C,G,D,A,E,B,F#,B#]
*This is called cycle of fifth (the distance between each two successive notes is a fifth)*
Flats apearance in order:
[NONE,B,E,A,D,G,C,F]
Name of Key signature in order:
[C,F,Bb,Eb,Ab,Db,Gb,Cb]
*This is the cycle of fourth*