OFFSET
1,2
MAPLE
position_in_whole_SB_tree_or_zero := (n, m) -> `if`((1 = gcd(n, m)), (frac2position_in_whole_SB_tree(n/m)), (0));
A054424_as_array := n -> position_in_whole_SB_tree_or_zero( ((n-((trinv(n)*(trinv(n)-1))/2))+1), ((((trinv(n)-1)*(((1/2)*trinv(n))+1))-n)+1) );
trinv := n -> floor((1+sqrt(1+8*n))/2); # Gives integral inverses to the triangular numbers
CROSSREFS
KEYWORD
AUTHOR
STATUS
approved