The sequence OEIS A056296 can be obtained using
$ a(n)={1\over n}\sum_{d\backslash n}\varphi(d)\begin{cases} {n/d+2\brace3}-{n/d+1\brace3}, & \text{$6\backslash d$;} \\ {n/d+2\brace3}-3{n/d+1\brace3}+3{n/d\brace3}, & \text{$3\backslash d$;} \\ 2{n/d+1\brace3}-2{n/d\brace3}, & \text{$2\backslash d$;} \\ {n/d\brace3}, & \text{else.} \\ \end{cases} $
or replacing the Stirling subset numbers
$ a(n)={1\over n}\sum_{d\backslash n}\varphi(d)\begin{cases} 3^{n/d}-2^{n/d}, & \text{$6\backslash d$;} \\ \left(3^{n/d}-2^{n/d}+1\right)/2, & \text{$3\backslash d$;} \\ \left(2\cdot3^{n/d}-3\cdot2^{n/d}\right)/3, & \text{$2\backslash d$;} \\ \left(3^{n/d}-3\cdot2^{n/d}+3\right)/6, & \text{else.} \\ \end{cases} $
Is there an ordinary generating function for this sequence?